mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
public: initial fix of double promotion
This commit is contained in:
8
wscript
8
wscript
@@ -176,6 +176,7 @@ def configure(conf):
|
||||
'-Werror=duplicated-branches', # BEWARE: buggy
|
||||
'-Werror=bool-compare',
|
||||
'-Werror=bool-operation',
|
||||
'-Werror=double-promotion',
|
||||
'-Wstrict-aliasing',
|
||||
]
|
||||
|
||||
@@ -230,6 +231,13 @@ 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:
|
||||
conf.env.append_unique('DEFINES', 'HAVE_TGMATH_H')
|
||||
|
||||
conf.env.DEDICATED = conf.options.DEDICATED
|
||||
# we don't need game launcher on dedicated
|
||||
conf.env.SINGLE_BINARY = conf.options.SINGLE_BINARY or conf.env.DEDICATED
|
||||
|
||||
Reference in New Issue
Block a user