mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 19:10:37 +00:00
wscript: explicitly undefine HAVE_TGMATH_H if tests are failed
This commit is contained in:
parent
2b13de80bf
commit
e93d362391
7
wscript
7
wscript
@ -233,10 +233,13 @@ def configure(conf):
|
||||
|
||||
# check if we can use C99 tgmath
|
||||
if conf.check_cc(header_name='tgmath.h', mandatory=False):
|
||||
if conf.check_cc(fragment='''#include<tgmath.h>
|
||||
tgmath_usable = conf.check_cc(fragment='''#include<tgmath.h>
|
||||
int main(void){ return (int)sin(2.0f); }''',
|
||||
msg='Checking if tgmath.h is usable', mandatory=False):
|
||||
conf.define('HAVE_TGMATH_H', 1)
|
||||
|
||||
conf.define_cond('HAVE_TGMATH_H', tgmath_usable)
|
||||
else:
|
||||
conf.undefine('HAVE_TGMATH_H')
|
||||
|
||||
conf.env.DEDICATED = conf.options.DEDICATED
|
||||
# we don't need game launcher on dedicated
|
||||
|
Loading…
x
Reference in New Issue
Block a user