From 7383d1a82fbcd9b764a196821d15b8efb5fdd430 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Fri, 24 Feb 2012 11:39:28 +0000 Subject: [PATCH] Add -Wno-array-bounds to compile the python bindings, for clang --- bindings/python/wscript | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bindings/python/wscript b/bindings/python/wscript index 10a7c7116..e2580e227 100644 --- a/bindings/python/wscript +++ b/bindings/python/wscript @@ -131,6 +131,9 @@ def configure(conf): conf.env.append_value('CXXFLAGS_PYEXT', '-fvisibility=hidden') conf.env.append_value('CCFLAGS_PYEXT', '-fvisibility=hidden') + if conf.check_compilation_flag('-Wno-array-bounds'): + conf.env.append_value('CXXFLAGS_PYEXT', '-Wno-array-bounds') + # Check for the location of pybindgen if Options.options.with_pybindgen is not None: if os.path.isdir(Options.options.with_pybindgen):