mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
wscript: better tgmath check, make double-promotion not an error
This commit is contained in:
parent
14be566401
commit
8afb2dbdec
9
wscript
9
wscript
@ -176,7 +176,7 @@ def configure(conf):
|
||||
'-Werror=duplicated-branches', # BEWARE: buggy
|
||||
'-Werror=bool-compare',
|
||||
'-Werror=bool-operation',
|
||||
'-Werror=double-promotion',
|
||||
'-Wdouble-promotion',
|
||||
'-Wstrict-aliasing',
|
||||
]
|
||||
|
||||
@ -231,11 +231,8 @@ def configure(conf):
|
||||
conf.env.append_unique('CXXFLAGS', cxxflags)
|
||||
conf.env.append_unique('LINKFLAGS', linkflags)
|
||||
|
||||
try:
|
||||
conf.check_cc(header_name='tgmath.h')
|
||||
except:
|
||||
pass
|
||||
else:
|
||||
# check if we can use C99 tgmath
|
||||
if conf.check_cc(header_name='tgmath.h', mandatory=False):
|
||||
conf.env.append_unique('DEFINES', 'HAVE_TGMATH_H')
|
||||
|
||||
conf.env.DEDICATED = conf.options.DEDICATED
|
||||
|
Loading…
x
Reference in New Issue
Block a user