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

Apple tvOS: Fix typo in flag #5372

Merged
merged 1 commit into from
Jul 22, 2024
Merged

Apple tvOS: Fix typo in flag #5372

merged 1 commit into from
Jul 22, 2024

Conversation

SirLynix
Copy link
Member

Flag is "-mappletv-simulator-version-min" not "-mappletvsimulator-version-min"

Flag is "mappletv-simulator-version-min" not "mappletvsimulator-version-min"
@@ -30,7 +30,7 @@ function main(toolchain)

-- init target minimal version
local target_minver = toolchain:config("target_minver")
local target_minver_flags = (simulator and "-mappletv-simulator-version-min=" or "-mappletvos-version-min=") .. target_minver
local target_minver_flags = (simulator and "-mappletvsimulator-version-min=" or "-mappletvos-version-min=") .. target_minver
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flag is "-mappletv-simulator-version-min" not "-mappletvsimulator-version-min"

? not "-mappletvsimulator-version-min"? But it was set.

Copy link
Member Author

@SirLynix SirLynix Jul 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@corentin35000 had the error

error: clang: error: unknown argument '-mappletv-simulator-version-min=17.0'; did you mean '-mappletvsimulator-version-min=17.0'?

and I found no reference to -mappletv-simulator-version-min (the one xmake sets) on the web, looks like a typo

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I did! I also had this case for the appletvos sdk, I have the impression that internally xmake uses the appletvsimulator flag

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got this error for appletvos and appletvsimulator: error: clang: error: unknown argument '-mappletv-simulator-version-min=17.0'; did you mean '-mappletvsimulator-version-min=17.0'?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like there are two problems

@waruqi waruqi merged commit c88a078 into xmake-io:dev Jul 22, 2024
19 checks passed
@waruqi waruqi added this to the v2.9.4 milestone Jul 22, 2024
@SirLynix SirLynix deleted the patch-17 branch July 22, 2024 09:00
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.

3 participants