Browse Source

wscript: check if tgmath actually compiles, should fix building under freebsd

pull/2/head
Alibek Omarov 5 years ago
parent
commit
2b13de80bf
  1. 3
      wscript

3
wscript

@ -233,6 +233,9 @@ def configure(conf): @@ -233,6 +233,9 @@ 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>
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

Loading…
Cancel
Save