You've already forked godot
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user