mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
wscript: -Werror=implicit-function-declaration analog for msvc
This commit is contained in:
5
wscript
5
wscript
@@ -315,7 +315,10 @@ def configure(conf):
|
||||
conf.env.append_unique('CXXFLAGS', cxxflags)
|
||||
conf.env.append_unique('LINKFLAGS', linkflags)
|
||||
|
||||
if conf.env.COMPILER_CC != 'msvc':
|
||||
if conf.env.COMPILER_CC == 'msvc':
|
||||
opt_cflags = ['/we4013'] # -Werror=implicit-function-declaration
|
||||
conf.env.CFLAGS_werror = conf.filter_cflags(opt_cflags, cflags)
|
||||
else:
|
||||
opt_flags = [
|
||||
# '-Wall', '-Wextra', '-Wpedantic',
|
||||
'-fdiagnostics-color=always',
|
||||
|
||||
Reference in New Issue
Block a user