Prior to this patch we would ignore -pie and -nopie options but that
could lead to issues when compiling code that uses either of these
flags.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
In GCC the spelling is -no-pie. -nopie is not documented as an alias, and I don't think it works.
Comment Actions
I suspect that OpenBSD uses -nopie, but this is never adopted by other OSes / GCC. And Clang should not add a new alias that has no significant uses.
Comment Actions
That alias is already recognized by the GNU driver. I'm sharing the implementation between the two drivers. Would you prefer to reject -nopie when targeting Fuchsia?
Comment Actions
Hmm, handling OPT_nopie in clang/lib/Driver/ToolChains/Gnu.cpp looks like a mistake. We should reject it for Gnu.cpp...