mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
wscript: check if tgmath actually compiles, should fix building under freebsd
This commit is contained in:
parent
2c67f4cb39
commit
2b13de80bf
5
wscript
5
wscript
@ -233,7 +233,10 @@ def configure(conf):
|
||||
|
||||
# check if we can use C99 tgmath
|
||||
if conf.check_cc(header_name='tgmath.h', mandatory=False):
|
||||
conf.define('HAVE_TGMATH_H', 1)
|
||||
if 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.env.DEDICATED = conf.options.DEDICATED
|
||||
# we don't need game launcher on dedicated
|
||||
|
Loading…
x
Reference in New Issue
Block a user