tests: filter_cflags: fix test

This commit is contained in:
Alibek Omarov 2019-10-11 07:01:04 +03:00
parent ddccc3d534
commit 0fdbd2d950

View File

@ -6,7 +6,7 @@ def options(opt):
pass
def configure(conf):
conf.load('compiler_c fwgslib')
conf.load('compiler_c compiler_cxx')
c_only_flags = [
'-DSOME_DEFINITION', # let's guess this flag always exist
@ -18,13 +18,13 @@ def configure(conf):
]
if '-Wsomething-that-does-not-exist' in conf.filter_cflags(c_only_flags):
self.fatal('TEST FAILED')
conf.fatal('TEST FAILED')
if '-std=c++11' in conf.filter_cflags(cxx_only_flags):
self.fatal('TEST FAILED')
conf.fatal('TEST FAILED')
if '-std=c++11' not in conf.filter_cxxflags(cxx_only_flags):
self.fatal('TEST FAILED')
conf.fatal('TEST FAILED')
def build(bld):
pass