Add -Wno-array-bounds to compile the python bindings, for clang

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2012-02-24 11:39:28 +00:00
1 parent 9ffd6de684
commit 5d053ecef3
1 file changed
+3
+3
View File
@@ -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):