Skip to content

Commit

Permalink
Fix min target flag for xros and xros-simulator (#14776)
Browse files Browse the repository at this point in the history
* Fix min target flag for xros and xros-simulator

* Update conan/tools/apple/apple.py

Co-authored-by: Francisco Ramírez <franchuti688@gmail.com>

---------

Co-authored-by: Francisco Ramírez <franchuti688@gmail.com>
  • Loading branch information
NoWiseMan and franramirez688 authored Oct 26, 2023
1 parent 255171f commit 79e6d7d
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit 79e6d7d

Please sign in to comment.