diff options
| author | Gabríel Arthúr Pétursson <gabriel@system.is> | 2017-07-06 22:13:32 +0000 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-07-24 00:11:27 +0300 |
| commit | 3ddf9bf6dd45c2accb526dbd97919c19ade43c25 (patch) | |
| tree | 2a6c3a5946f59dc6788bf92a5d7004159a307e67 /run_unittests.py | |
| parent | 3bb1ba873b2e8cfd3be0d7c498e166c4817a0dce (diff) | |
| download | meson-3ddf9bf6dd45c2accb526dbd97919c19ade43c25.tar.gz | |
Ensure same compiler flags are used for compiling PCH as normal sources
Precompiled headers should generally be compiled with the same flags as
the sources that will include the header. Some deviations are safe,
however, most will cause the compiler to reject the precompiled header
or possibly lead to compiler crashes.
Diffstat (limited to 'run_unittests.py')
| -rwxr-xr-x | run_unittests.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index ff5a015d5..12b5278e9 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -1877,6 +1877,13 @@ class LinuxlikeTests(BasePlatformTests): install_rpath = get_rpath(os.path.join(self.installdir, 'usr/bin/prog')) self.assertEqual(install_rpath, '/baz') + def test_pch_with_address_sanitizer(self): + testdir = os.path.join(self.common_test_dir, '13 pch') + self.init(testdir, ['-Db_sanitize=address']) + self.build() + compdb = self.get_compdb() + for i in compdb: + self.assertIn("-fsanitize=address", i["command"]) class LinuxArmCrossCompileTests(BasePlatformTests): ''' |
