diff options
author | Lucas Duarte Prates <lucas.prates@arm.com> | 2025-03-18 09:11:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-18 09:11:43 +0000 |
commit | 44e4b27aec8639823030dd90eb04afa6545c8352 (patch) | |
tree | 520a7d79f292a609c2291cd0713751ae7caf1b62 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp | |
parent | bd1be8a242384d98ef2087f4571b464e01501f5a (diff) | |
download | llvm-44e4b27aec8639823030dd90eb04afa6545c8352.zip llvm-44e4b27aec8639823030dd90eb04afa6545c8352.tar.gz llvm-44e4b27aec8639823030dd90eb04afa6545c8352.tar.bz2 |
[clang] Fix darwin-related tests' REQUIRES annotation (#130138)
The tests updated by this commit were designed to check features in the
clang's driver and index that require clang to be targgeting a darwin
platform while running on a darwin host. For that, their execution is
currently gated by the `REQUIRES: system-darwin` annotation.
This approach becomes a problem when trying to run such tests on a
cross-compiling build of clang on a darwin platform. When the default
target is not darwin (e.g. via `LLVM_DEFAULT_TARGET_TRIPLE `), the
tests will still run on a darwin host and fail spuriously because of the
mismatch with the target detection.
To fix this issue, this patch introduces an extra condition to the
tests' REQUIRES annotation, `target={{.*}}-{{darwin|macos}}{{.*}}`,
ensuring they only run when the relevant target is present.
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions