Browse Source

wscript: better tgmath check, make double-promotion not an error

pull/2/head
Alibek Omarov 5 years ago
parent
commit
8afb2dbdec
  1. 9
      wscript

9
wscript

@ -176,7 +176,7 @@ def configure(conf):
'-Werror=duplicated-branches', # BEWARE: buggy '-Werror=duplicated-branches', # BEWARE: buggy
'-Werror=bool-compare', '-Werror=bool-compare',
'-Werror=bool-operation', '-Werror=bool-operation',
'-Werror=double-promotion', '-Wdouble-promotion',
'-Wstrict-aliasing', '-Wstrict-aliasing',
] ]
@ -231,11 +231,8 @@ def configure(conf):
conf.env.append_unique('CXXFLAGS', cxxflags) conf.env.append_unique('CXXFLAGS', cxxflags)
conf.env.append_unique('LINKFLAGS', linkflags) conf.env.append_unique('LINKFLAGS', linkflags)
try: # check if we can use C99 tgmath
conf.check_cc(header_name='tgmath.h') if conf.check_cc(header_name='tgmath.h', mandatory=False):
except:
pass
else:
conf.env.append_unique('DEFINES', 'HAVE_TGMATH_H') conf.env.append_unique('DEFINES', 'HAVE_TGMATH_H')
conf.env.DEDICATED = conf.options.DEDICATED conf.env.DEDICATED = conf.options.DEDICATED

Loading…
Cancel
Save