Skip to content

Making build tools aware of cross-compilation #997

Answered by henryiii
nicholasjng asked this question in Q&A
Discussion options

You must be logged in to vote

I'd take advantage of this:

if python_configuration.version not in {"3.6", "3.7"}:
if config_is_arm64:
# macOS 11 is the first OS with arm64 support, so the wheels
# have that as a minimum.
env.setdefault("_PYTHON_HOST_PLATFORM", "macosx-11.0-arm64")
env.setdefault("ARCHFLAGS", "-arch arm64")
elif config_is_universal2:
env.setdefault("_PYTHON_HOST_PLATFORM", "macosx-10.9-universal2")
env.setdefault("ARCHFLAGS", "-arch arm64 -arch x86_64")
elif python_configuration.identifier.endswith("x86_64"):
# even on the macos11.0 Python installer, on the x86_64 side it's
#…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@nicholasjng
Comment options

Answer selected by nicholasjng
Comment options

You must be logged in to vote
2 replies
@joerick
Comment options

@henryiii
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants