mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-22 01:45:19 +01:00
wscript: always enable -Werror=implicit-function-declaration
This commit is contained in:
parent
ca9d3d262a
commit
3daf014af8
7
wscript
7
wscript
@ -279,7 +279,7 @@ def configure(conf):
|
||||
conf.env.append_unique('CXXFLAGS', cxxflags)
|
||||
conf.env.append_unique('LINKFLAGS', linkflags)
|
||||
|
||||
if conf.env.COMPILER_CC != 'msvc' and not conf.options.DISABLE_WERROR:
|
||||
if conf.env.COMPILER_CC != 'msvc':
|
||||
opt_flags = [
|
||||
# '-Wall', '-Wextra', '-Wpedantic',
|
||||
'-fdiagnostics-color=always',
|
||||
@ -342,6 +342,11 @@ def configure(conf):
|
||||
|
||||
opt_cxxflags = [] # TODO:
|
||||
|
||||
if conf.options.DISABLE_WERROR:
|
||||
opt_flags = []
|
||||
opt_cflags = ['-Werror=implicit-function-declaration']
|
||||
opt_cxxflags = []
|
||||
|
||||
conf.env.CFLAGS_werror = conf.filter_cflags(opt_flags + opt_cflags, cflags)
|
||||
conf.env.CXXFLAGS_werror = conf.filter_cxxflags(opt_flags + opt_cxxflags, cxxflags)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user