mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
[macOS] Check Apple specific version instead of generic clang version.
This commit is contained in:
parent
7022271291
commit
5201475f62
2 changed files with 33 additions and 4 deletions
|
@ -121,12 +121,12 @@ def configure(env: "Environment"):
|
|||
env.Append(LINKFLAGS=["-arch", "x86_64", "-mmacosx-version-min=10.13"])
|
||||
|
||||
cc_version = get_compiler_version(env)
|
||||
cc_version_major = cc_version["major"]
|
||||
cc_version_minor = cc_version["minor"]
|
||||
cc_version_major = cc_version["apple_major"]
|
||||
cc_version_minor = cc_version["apple_minor"]
|
||||
vanilla = is_vanilla_clang(env)
|
||||
|
||||
# Workaround for Xcode 15 linker bug.
|
||||
if not vanilla and cc_version_major == 15 and cc_version_minor == 0:
|
||||
if not vanilla and cc_version_major == 1500 and cc_version_minor == 0:
|
||||
env.Prepend(LINKFLAGS=["-ld_classic"])
|
||||
|
||||
env.Append(CCFLAGS=["-fobjc-arc"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue