Skip to content

[Clang] -mxros-version-min does not exist #88271

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

Closed
madsmtm opened this issue Apr 10, 2024 · 6 comments
Closed

[Clang] -mxros-version-min does not exist #88271

madsmtm opened this issue Apr 10, 2024 · 6 comments
Labels
clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' wontfix Issue is real, but we can't or won't fix it. Not invalid

Comments

@madsmtm
Copy link
Contributor

madsmtm commented Apr 10, 2024

Clang allows specifying the deployment target using flags like -miphoneos-version-min, -mtvos-version-min as documented in the attribute docs for availability, but similar functionality is not exposed for xrOS / visionOS.

@github-actions github-actions bot added the clang Clang issues not falling into any other category label Apr 10, 2024
@EugeneZelenko EugeneZelenko added clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' and removed clang Clang issues not falling into any other category labels Apr 10, 2024
@llvmbot
Copy link
Member

llvmbot commented Apr 10, 2024

@llvm/issue-subscribers-clang-driver

Author: Mads Marquart (madsmtm)

Clang allows specifying the deployment target using flags like `-miphoneos-version-min`, `-mtvos-version-min` as documented in the [attribute docs for `availability`](https://clang.llvm.org/docs/AttributeReference.html#availability), but similar functionality is not exposed for xrOS / visionOS.

@madsmtm
Copy link
Contributor Author

madsmtm commented Apr 10, 2024

Would the proper workaround be to use -mtargetos=xros1.0, or does that have other problems?

@shafik
Copy link
Collaborator

shafik commented Apr 10, 2024

CC @Bigcheese @ldionne

@ldionne
Copy link
Member

ldionne commented Apr 11, 2024

Thanks for the heads up, asking around what to do with this.

@ributzka
Copy link
Collaborator

ributzka commented Apr 11, 2024

Would the proper workaround be to use -mtargetos=xros1.0, or does that have other problems?

This is not just a workaround - this is now the recommended option. Ideally you use --target, but the next best thing after that is the combination of -arch and -mtargetos.

@ldionne
Copy link
Member

ldionne commented Apr 11, 2024

This looks like NTBF to me, then. I will tentatively close this, please reopen if someone disagrees.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' wontfix Issue is real, but we can't or won't fix it. Not invalid
Projects
None yet
Development

No branches or pull requests

6 participants