[clang] Add REQUIRES: x86-registered-target to test added in #173311. (PR #178271)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 27 10:24:20 PST 2026
https://github.com/dyung created https://github.com/llvm/llvm-project/pull/178271
PR #173311 added a test `clang/test/CodeGen/stack-protector-vars.cpp` that fails if the x86 backend is not built. This adds the proper `REQUIRES` line to fix that.
Should fix the test failure on buildbots that do not build the x86 backend such as https://lab.llvm.org/buildbot/#/builders/190/builds/35171 and https://lab.llvm.org/buildbot/#/builders/154/builds/26976.
>From 94f929f9f547e28e8c885e448b7281dbe5e3004f Mon Sep 17 00:00:00 2001
From: Douglas Yung <douglas.yung at sony.com>
Date: Tue, 27 Jan 2026 10:15:27 -0800
Subject: [PATCH] Add REQUIRES: x86-registered-target to test added in #173311.
Should fix failure on buildbot https://lab.llvm.org/buildbot/#/builders/190/builds/35171
---
clang/test/CodeGen/stack-protector-vars.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/clang/test/CodeGen/stack-protector-vars.cpp b/clang/test/CodeGen/stack-protector-vars.cpp
index d11cd822cd871..a8869ef9a9712 100644
--- a/clang/test/CodeGen/stack-protector-vars.cpp
+++ b/clang/test/CodeGen/stack-protector-vars.cpp
@@ -3,6 +3,8 @@
// RUN: %clang -target x86_64-apple-darwin -emit-llvm -S -o - %s -fstack-protector-all | FileCheck %s
// RUN: %clang -target x86_64-apple-darwin -Xclang -verify -fstack-protector-all %s -o %t -c
+// REQUIRES: x86-reigstered-target
+
typedef __SIZE_TYPE__ size_t;
int printf(const char * _Format, ...);
More information about the cfe-commits
mailing list