diff options
author | David Seifert <soap@gentoo.org> | 2018-09-16 11:39:51 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-09-16 18:27:19 +0300 |
commit | 2b9fb36267c8661604ef53a7ddbd3a65f7b910dc (patch) | |
tree | 3021438ad517ac58482cf9b07daf2fd9bcc46382 /run_unittests.py | |
parent | add55bb8613ce2d2da30412d3699d84c7f4f3772 (diff) | |
download | meson-2b9fb36267c8661604ef53a7ddbd3a65f7b910dc.zip meson-2b9fb36267c8661604ef53a7ddbd3a65f7b910dc.tar.gz meson-2b9fb36267c8661604ef53a7ddbd3a65f7b910dc.tar.bz2 |
Fix GCC on macOS
* `common/40 has function` still fails due
to alloca being a GCC builtin.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index a355b0f..f8f6624 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -3111,6 +3111,10 @@ class DarwinTests(BasePlatformTests): testdir = os.path.join(self.common_test_dir, '4 shared') # Try with bitcode enabled out = self.init(testdir, extra_args='-Db_bitcode=true') + env = get_fake_env(testdir, self.builddir, self.prefix) + cc = env.detect_c_compiler(False) + if cc.id != 'clang': + raise unittest.SkipTest('Not using Clang on OSX') # Warning was printed self.assertRegex(out, 'WARNING:.*b_bitcode') # Compiler options were added |