mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-02-02 10:14:42 +00:00
wscript: fix sanitize build
This commit is contained in:
parent
dd1daa5bff
commit
fa90dbbd5e
9
wscript
9
wscript
@ -226,6 +226,7 @@ def configure(conf):
|
|||||||
}
|
}
|
||||||
|
|
||||||
compiler_optional_flags = [
|
compiler_optional_flags = [
|
||||||
|
# '-Wall', '-Wextra', '-Wpedantic',
|
||||||
'-fdiagnostics-color=always',
|
'-fdiagnostics-color=always',
|
||||||
'-Werror=return-type',
|
'-Werror=return-type',
|
||||||
'-Werror=parentheses',
|
'-Werror=parentheses',
|
||||||
@ -281,8 +282,12 @@ def configure(conf):
|
|||||||
# And here C++ flags starts to be treated separately
|
# And here C++ flags starts to be treated separately
|
||||||
cxxflags = list(cflags)
|
cxxflags = list(cflags)
|
||||||
if conf.env.COMPILER_CC != 'msvc':
|
if conf.env.COMPILER_CC != 'msvc':
|
||||||
conf.check_cc(cflags=cflags, msg= 'Checking for required C flags')
|
conf.check_cc(cflags=cflags, linkflags=linkflags, msg= 'Checking for required C flags')
|
||||||
conf.check_cxx(cxxflags=cflags, msg= 'Checking for required C++ flags')
|
conf.check_cxx(cxxflags=cflags, linkflags=linkflags, msg= 'Checking for required C++ flags')
|
||||||
|
|
||||||
|
conf.env.append_unique('CFLAGS', cflags)
|
||||||
|
conf.env.append_unique('CXXFLAGS', cxxflags)
|
||||||
|
conf.env.append_unique('LINKFLAGS', linkflags)
|
||||||
|
|
||||||
cxxflags += conf.filter_cxxflags(compiler_optional_flags, cflags)
|
cxxflags += conf.filter_cxxflags(compiler_optional_flags, cflags)
|
||||||
cflags += conf.filter_cflags(compiler_optional_flags + c_compiler_optional_flags, cflags)
|
cflags += conf.filter_cflags(compiler_optional_flags + c_compiler_optional_flags, cflags)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user