Merge pull request #43687 from akien-mga/macos-osxcross-link-arm64
OSX: Fix linking with osxcross for arm64
This commit is contained in:
commit
71f53a5ba3
|
@ -87,8 +87,8 @@ def configure(env):
|
||||||
|
|
||||||
if env["arch"] == "arm64":
|
if env["arch"] == "arm64":
|
||||||
print("Building for macOS 10.15+, platform arm64.")
|
print("Building for macOS 10.15+, platform arm64.")
|
||||||
env.Append(CCFLAGS=["-arch", "arm64", "-mmacosx-version-min=10.15", "-target", "arm64-apple-macos10.15"])
|
env.Append(CCFLAGS=["-arch", "arm64", "-mmacosx-version-min=10.15"])
|
||||||
env.Append(LINKFLAGS=["-arch", "arm64", "-mmacosx-version-min=10.15", "-target", "arm64-apple-macos10.15"])
|
env.Append(LINKFLAGS=["-arch", "arm64", "-mmacosx-version-min=10.15"])
|
||||||
else:
|
else:
|
||||||
print("Building for macOS 10.12+, platform x86-64.")
|
print("Building for macOS 10.12+, platform x86-64.")
|
||||||
env.Append(CCFLAGS=["-arch", "x86_64", "-mmacosx-version-min=10.12"])
|
env.Append(CCFLAGS=["-arch", "x86_64", "-mmacosx-version-min=10.12"])
|
||||||
|
|
Loading…
Reference in New Issue