Skip to content

Fix incorrect TARGET_TRIPLE for Apple simulator targets #3340

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

skribka04
Copy link

Fixes a bug in Python-Apple-support's Makefile patch where the computed TARGET_TRIPLE for Apple simulator SDKs (iOS, tvOS, watchOS, visionOS) included a duplicate -simulator suffix.

The Makefile logic checked for "simulator" in the SDK name, but the OS_LOWER already includes -simulator for these cases, resulting in invalid triples like arm64-apple-ios-simulator-simulator.

Replaced the conditional logic with a unified form:
TARGET_TRIPLE-$(target) = $(ARCH-$(target))-apple-$(OS_LOWER-$(target))

This resolves the issue and simplifies the Makefile logic.

Fixes a bug in Python-Apple-support's Makefile patch where the computed
TARGET_TRIPLE for Apple simulator SDKs (iOS, tvOS, watchOS, visionOS)
included a duplicate `-simulator` suffix.

The Makefile logic checked for "simulator" in the SDK name, but the
OS_LOWER already includes `-simulator` for these cases, resulting in
invalid triples like `arm64-apple-ios-simulator-simulator`.

Replaced the conditional logic with a unified form:
  TARGET_TRIPLE-$(target) = $(ARCH-$(target))-apple-$(OS_LOWER-$(target))

This resolves the issue and simplifies the Makefile logic.
@buitrbao222
Copy link

having this problem as well

@buitrbao222
Copy link

it works well, i built successfully without the error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants