mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Properly order warning suppression flags during compile
This commit is contained in:
committed by
Vinnie Falco
parent
6335e34395
commit
ac3cf05f1a
11
SConstruct
11
SConstruct
@@ -247,13 +247,13 @@ def config_env(toolchain, variant, env):
|
|||||||
env.ParseConfig('pkg-config --static --cflags --libs openssl')
|
env.ParseConfig('pkg-config --static --cflags --libs openssl')
|
||||||
env.ParseConfig('pkg-config --static --cflags --libs protobuf')
|
env.ParseConfig('pkg-config --static --cflags --libs protobuf')
|
||||||
|
|
||||||
env.Prepend(CCFLAGS=['-Wall'])
|
env.Prepend(CFLAGS=['-Wall'])
|
||||||
|
env.Prepend(CXXFLAGS=['-Wall'])
|
||||||
|
|
||||||
env.Append(CCFLAGS=[
|
env.Append(CCFLAGS=[
|
||||||
'-Wno-sign-compare',
|
'-Wno-sign-compare',
|
||||||
'-Wno-char-subscripts',
|
'-Wno-char-subscripts',
|
||||||
'-Wno-format',
|
'-Wno-format'
|
||||||
'-Wno-deprecated-register'
|
|
||||||
])
|
])
|
||||||
|
|
||||||
env.Append(CXXFLAGS=[
|
env.Append(CXXFLAGS=[
|
||||||
@@ -334,7 +334,10 @@ def config_env(toolchain, variant, env):
|
|||||||
# Add '-Wshorten-64-to-32'
|
# Add '-Wshorten-64-to-32'
|
||||||
env.Append(CCFLAGS=[])
|
env.Append(CCFLAGS=[])
|
||||||
# C++ only
|
# C++ only
|
||||||
env.Append(CXXFLAGS=['-Wno-mismatched-tags'])
|
env.Append(CXXFLAGS=[
|
||||||
|
'-Wno-mismatched-tags',
|
||||||
|
'-Wno-deprecated-register'
|
||||||
|
])
|
||||||
|
|
||||||
elif toolchain == 'gcc':
|
elif toolchain == 'gcc':
|
||||||
if 'GNU_CC' in env and 'GNU_CXX' in env and 'GNU_LINK' in env:
|
if 'GNU_CC' in env and 'GNU_CXX' in env and 'GNU_LINK' in env:
|
||||||
|
|||||||
Reference in New Issue
Block a user