[lld] Add `REQUIRES: riscv` to test added in 151639 to skip the test when riscv is not built. (PR #152858)

via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 9 06:58:56 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lld

Author: None (dyung)

<details>
<summary>Changes</summary>

A test was added in #<!-- -->151639 which fails if the RISCV backend is not built, so add a `REQUIRES: riscv` to skip it when the backend is not present.

---
Full diff: https://github.com/llvm/llvm-project/pull/152858.diff


1 Files Affected:

- (modified) lld/test/ELF/riscv-relocatable-align.s (+1) 


``````````diff
diff --git a/lld/test/ELF/riscv-relocatable-align.s b/lld/test/ELF/riscv-relocatable-align.s
index 9a782ed47850a..4ba932ce5f847 100644
--- a/lld/test/ELF/riscv-relocatable-align.s
+++ b/lld/test/ELF/riscv-relocatable-align.s
@@ -1,3 +1,4 @@
+# REQUIRES: riscv
 # RUN: rm -rf %t && split-file %s %t && cd %t
 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+c,+relax a.s -o ac.o
 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+c,+relax b.s -o bc.o

``````````

</details>


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


More information about the llvm-commits mailing list