mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-25 19:30:04 +01:00
Add -fno-strict-aliasing flags only if missing
https://gitlab.com/ita1024/waf/merge_requests/2248/diffs
This commit is contained in:
parent
0178e6a692
commit
497b875a89
@ -440,11 +440,11 @@ def check_python_headers(conf, features='pyembed pyext'):
|
||||
|
||||
# Code using the Python API needs to be compiled with -fno-strict-aliasing
|
||||
if env.CC_NAME == 'gcc':
|
||||
env.append_value('CFLAGS_PYEMBED', ['-fno-strict-aliasing'])
|
||||
env.append_value('CFLAGS_PYEXT', ['-fno-strict-aliasing'])
|
||||
env.append_unique('CFLAGS_PYEMBED', ['-fno-strict-aliasing'])
|
||||
env.append_unique('CFLAGS_PYEXT', ['-fno-strict-aliasing'])
|
||||
if env.CXX_NAME == 'gcc':
|
||||
env.append_value('CXXFLAGS_PYEMBED', ['-fno-strict-aliasing'])
|
||||
env.append_value('CXXFLAGS_PYEXT', ['-fno-strict-aliasing'])
|
||||
env.append_unique('CXXFLAGS_PYEMBED', ['-fno-strict-aliasing'])
|
||||
env.append_unique('CXXFLAGS_PYEXT', ['-fno-strict-aliasing'])
|
||||
|
||||
if env.CC_NAME == "msvc":
|
||||
from distutils.msvccompiler import MSVCCompiler
|
||||
|
Loading…
Reference in New Issue
Block a user