You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
SCons: Expand CXX in check for vanilla Clang
I had missed it in df7ecfc4a7 it seems.
Fixes #37575.
This commit is contained in:
@@ -598,7 +598,11 @@ def detect_darwin_sdk_path(platform, env):
|
|||||||
def is_vanilla_clang(env):
|
def is_vanilla_clang(env):
|
||||||
if not using_clang(env):
|
if not using_clang(env):
|
||||||
return False
|
return False
|
||||||
version = subprocess.check_output([env["CXX"], "--version"]).strip().decode("utf-8")
|
try:
|
||||||
|
version = subprocess.check_output([env.subst(env["CXX"]), "--version"]).strip().decode("utf-8")
|
||||||
|
except (subprocess.CalledProcessError, OSError):
|
||||||
|
print("Couldn't parse CXX environment variable to infer compiler version.")
|
||||||
|
return False
|
||||||
return not version.startswith("Apple")
|
return not version.startswith("Apple")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user