|
|
|
@ -360,7 +360,7 @@ class InternalTests(unittest.TestCase): |
|
|
|
|
stat.S_IRGRP | stat.S_IXGRP) |
|
|
|
|
|
|
|
|
|
def test_compiler_args_class_none_flush(self): |
|
|
|
|
cc = mesonbuild.compilers.CCompiler([], 'fake', False, MachineChoice.HOST, mock.Mock()) |
|
|
|
|
cc = mesonbuild.compilers.ClangCCompiler([], 'fake', MachineChoice.HOST, False, mock.Mock()) |
|
|
|
|
a = cc.compiler_args(['-I.']) |
|
|
|
|
#first we are checking if the tree construction deduplicates the correct -I argument |
|
|
|
|
a += ['-I..'] |
|
|
|
@ -383,8 +383,8 @@ class InternalTests(unittest.TestCase): |
|
|
|
|
a += ['-Ifirst'] |
|
|
|
|
self.assertEqual(a, ['-Ifirst', '-Isecond', '-Ithird']) |
|
|
|
|
|
|
|
|
|
def test_compiler_args_class(self): |
|
|
|
|
cc = mesonbuild.compilers.CCompiler([], 'fake', False, MachineChoice.HOST, mock.Mock()) |
|
|
|
|
def test_compiler_args_class_clike(self): |
|
|
|
|
cc = mesonbuild.compilers.ClangCCompiler([], 'fake', MachineChoice.HOST, False, mock.Mock()) |
|
|
|
|
# Test that empty initialization works |
|
|
|
|
a = cc.compiler_args() |
|
|
|
|
self.assertEqual(a, []) |
|
|
|
|