[clang] [Clang][AArch64] Add support for SHF_AARCH64_PURECODE ELF section flag (2/3) (PR #125688)

Csanád Hajdú via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 18 01:22:34 PST 2025


================
@@ -0,0 +1,6 @@
+// RUN: %clang --sysroot=%S/Inputs -c -fdriver-only -Werror --target=aarch64-unknown-linux-gnu \
----------------
Il-Capitano wrote:

There must have been a good reason I removed the `!ForMultilib` check, but I can't remember now...

You're right, the check is needed for bare metal targets. As is, the test would pass with `--target=aarch64-none-elf`, but that's because there's no `sysroot/aarch64-none-elf/multilib.yaml` file found. However I was able to test for this by passing the `--multi-lib-config=%S/Inputs/multilib/empty.yaml` flag.

https://github.com/llvm/llvm-project/pull/125688


More information about the cfe-commits mailing list