From 2b9fb36267c8661604ef53a7ddbd3a65f7b910dc Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sun, 16 Sep 2018 11:39:51 +0200 Subject: Fix GCC on macOS * `common/40 has function` still fails due to alloca being a GCC builtin. --- run_unittests.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'run_unittests.py') 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 -- cgit v1.1