diff options
author | Sebastian Kreutzer <SebastianKreutzer@gmx.net> | 2024-10-29 15:40:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-29 09:40:53 -0500 |
commit | a388df712700f38ad9a51d49a657a28e739f5eb4 (patch) | |
tree | 9567c3d4f1173e9f294aef6d24ea360ef1334d45 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | b6a84e77b696b0d91b7cbed116d6454b6b1cc62b (diff) | |
download | llvm-a388df712700f38ad9a51d49a657a28e739f5eb4.zip llvm-a388df712700f38ad9a51d49a657a28e739f5eb4.tar.gz llvm-a388df712700f38ad9a51d49a657a28e739f5eb4.tar.bz2 |
[XRay] Remove reliance on default PIC behavior in DSO tests (#113892)
Compiling with `-fxray-shared` requires position-independent code
(introduced in #113548).
Some tests do not explicitly specify this, thus falling back to the
compiler default.
If, for example, Clang is compiled with
`-DCLANG_DEFAULT_PIE_ON_LINUX=OFF`, these checks fail.
This patch addresses this issue in two tests:
- Removing a check in `xray-shared.cpp` that only tests default PIC
behavior
- Adding `-fPIC` explicitly in `clang-xray-shared.cpp`
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions