public: initial fix of double promotion

This commit is contained in:
Alibek Omarov
2019-10-05 03:10:13 +03:00
parent 880dd2546f
commit 0577ecbccf
4 changed files with 23 additions and 12 deletions

View File

@@ -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