Skip to content
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

Fix min target flag for xros and xros-simulator #14776

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions conan/tools/apple/apple.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,11 @@ def apple_min_version_flag(os_version, os_sdk, subsystem):
elif 'appletvsimulator' in os_sdk:
flag = '-mtvos-simulator-version-min'
elif 'xros' in os_sdk:
flag = '-mxros-version-min'
# need early return as string did not fit into the "normal" schema
return f'-target arm64-apple-xros{os_version}'
elif 'xrsimulator' in os_sdk:
flag = '-mxros-simulator-version-min'
# need early return as string did not fit into the "normal" schema
return f'-target arm64-apple-xros{os_version}-simulator'

if subsystem == 'catalyst':
# especial case, despite Catalyst is macOS, it requires an iOS version argument
Expand Down