tests: filter_cflags: fix test
This commit is contained in:
parent
ddccc3d534
commit
0fdbd2d950
@ -6,25 +6,25 @@ 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
|
||||
'-Wsomething-that-does-not-exist'
|
||||
]
|
||||
|
||||
|
||||
cxx_only_flags = [
|
||||
'-std=c++11', # let's guess this flag always exist only for C++ compiler
|
||||
]
|
||||
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user