diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-02-24 10:35:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-24 10:35:17 +0100 |
commit | 9e4d11d10d3763d0ed2de156a5a4d52566157b2f (patch) | |
tree | 88524083c5b4be6404d285ff4341d468fc66da64 /methods.py | |
parent | 128a55a597b0dfad4d7f5b94c64b37b0ce120899 (diff) | |
parent | c491232ae2e4788079525b75f449f45380a2120a (diff) |
Merge pull request #36503 from Redwan13/mac_os_build_fix
Scons: fixed build for vanilla clang in mac os x
Diffstat (limited to 'methods.py')
-rw-r--r-- | methods.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/methods.py b/methods.py index 18e1c0bba7..5fdcc2c4b4 100644 --- a/methods.py +++ b/methods.py @@ -549,6 +549,13 @@ def detect_darwin_sdk_path(platform, env): print("Failed to find SDK path while running xcrun --sdk {} --show-sdk-path.".format(sdk_name)) raise +def is_vanilla_clang(env): + if not using_clang(env): + return False + version = decode_utf8(subprocess.check_output([env['CXX'], '--version']).strip()) + return not version.startswith("Apple") + + def get_compiler_version(env): if using_gcc(env): version = decode_utf8(subprocess.check_output([env['CXX'], '-dumpversion']).strip()) |