1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Scons: fixed build for vanilla clang in mac os x

This commit is contained in:
Nickolai Korshunov
2020-02-24 12:03:58 +03:00
parent 128a55a597
commit c491232ae2
2 changed files with 17 additions and 4 deletions

View File

@@ -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())