mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
[macOS, 3.x] Workaround Xcode 15 linker bug.
This commit is contained in:
parent
1d7a417aff
commit
fad3fced8f
2 changed files with 19 additions and 1 deletions
11
methods.py
11
methods.py
|
@ -1080,6 +1080,17 @@ def get_compiler_version(env):
|
|||
return None
|
||||
|
||||
|
||||
def is_vanilla_clang(env):
|
||||
if not using_clang(env):
|
||||
return False
|
||||
try:
|
||||
version = decode_utf8(subprocess.check_output([env.subst(env["CXX"]), "--version"]).strip())
|
||||
except (subprocess.CalledProcessError, OSError):
|
||||
print("Couldn't parse CXX environment variable to infer compiler version.")
|
||||
return False
|
||||
return not version.startswith("Apple")
|
||||
|
||||
|
||||
def using_gcc(env):
|
||||
return "gcc" in os.path.basename(env["CC"])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue