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
[SR-5721] clang: warning: argument unused during compilation: '-pie' #48291
Comments
@jckarter Look familiar? Is the -pie only used during linking and should something else be passed at other times? |
@belkadan You might be interested as well. |
I'm not sure exactly, but it would make sense that it's only really necessary when linking executables. The warning ought to be harmless, at least. |
Can we revert the PR until proper fix is placed? |
I would rather not, personally; PIE is a functional necessity for linking Swift executables correctly, whereas this is merely a warning. |
When do we invoke Clang that isn't for linking? Or is that coming from the importer somehow? |
Somewhat related: do you think there's a case for not warning about `-pie` on macOS to make the command line flags compatible with both macOS and Linux when using -Werror? Or do you think users should should be required to conditionally pass this flag. |
It'd be reasonable to ask the clang folks that. It seems harmless since code for macOS/iOS/etc. should generally always be built PIC to begin with, so it's not really "ignoring" the argument per se. |
Additional Detail from JIRA
md5: 7f59f01f8a40111b7999a4c1bf284308
Issue Description:
This new warning showed up on linux when compiling SwiftPM, e.g.: https://ci.swift.org/job/swift-package-manager-Linux-smoke-test/34/console
Most likely caused by:
#11272
The text was updated successfully, but these errors were encountered: