Add -Wno-array-bounds to compile the python bindings, for clang
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Fri, 24 Feb 2012 11:39:28 +0000
changeset 7746 c1a97d303064
parent 7745 fcf4778c9b16
child 7747 53a26ce38807
Add -Wno-array-bounds to compile the python bindings, for clang
bindings/python/wscript
--- a/bindings/python/wscript	Fri Feb 24 03:45:36 2012 -0500
+++ b/bindings/python/wscript	Fri Feb 24 11:39:28 2012 +0000
@@ -131,6 +131,9 @@
         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):