-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
[clang] -print-target-triple doesn't work properly on Apple platforms #61762
Comments
@llvm/issue-subscribers-clang-driver |
CC @Xazax-hun Do you think the fix is similar to what you did for #98325? |
Probably something similar needs to be done for this as well, but I vaguely remember trying this out and had the impression doing the same change for this flag was not sufficient to get the desired results. I did not look deeply why this was the case, and it is also possible I was missing something obvious. |
Actually, it only needed a minor change after initializing the targets early. Opened a PR: #104037 |
Reopening, since the PR was reverted. See the discussion at the PR why. |
Not sure why this was closed again @s-barannikov . |
@tstellar Are you aware of this? Is there a setting we could enable/disable in the monorepo to prevent issues from being closed from pushes to other repositories? That seems like a very dangerous thing to me. |
I think it might have happened because the commit message contains the full link to the issue instead of just a hash sign and a number. I've never seen such an issue before, google is silent, and I didn't even receive a notification. |
So we can see that the compiler knows (at some point) that it should be compiling for macosx11.0.0, but
-print-target-triple
doesn't know that yet. That's because-print-target-triple
is implemented inHandleImmediateArgs
which is run before thetoolchains::Darwin
object is initialized.The text was updated successfully, but these errors were encountered: