[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:23 PDT 2025


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

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.

>From 75f6779a4b6e70ad95c2481445c21e151a9af80a Mon Sep 17 00:00:00 2001
From: Douglas Yung <dyung+github at fastmail.fm>
Date: Sat, 9 Aug 2025 21:55:20 +0800
Subject: [PATCH] Add `REQUIRES: riscv` to test added in 151639 to skip the
 test when riscv is not built.

---
 lld/test/ELF/riscv-relocatable-align.s | 1 +
 1 file changed, 1 insertion(+)

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



More information about the llvm-commits mailing list