The AMDGPU target only emits shared libraries currently. This patch
changes the handling of the PIC level to be managed in the
AMDGPUToolChain rather than having a special case for it. This causes
--target=amdgcn-- to no longer set the PIC. This should be an
acceptable change since that doesn't use a correct toolchain anyway.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I don't understand how the PIC options are supposed to propagate given that codegen seems to still use magic flags but removing a special case seems good
clang/lib/Driver/ToolChains/AMDGPU.h | ||
---|---|---|
71 | What's the difference between isPICDefault and isPICDefaultForced? |
clang/lib/Driver/ToolChains/AMDGPU.h | ||
---|---|---|
71 | isPICDefaultForced more or less just overrides -fpie or similar AFAIK. |
What's the difference between isPICDefault and isPICDefaultForced?