https://github.com/vhscampos created 
https://github.com/llvm/llvm-project/pull/213884

…

The test added in 316a29603228c5d5000e0ddf8dfba2a494ac7ee9 fails when run on 
MacOS but targeting Linux as a cross compiler.

>From afa45853ecbdbc613e413c4a103a3df6ed5bddde Mon Sep 17 00:00:00 2001
From: Victor Campos <[email protected]>
Date: Tue, 4 Aug 2026 09:13:50 +0100
Subject: [PATCH] [Clang] Restrict ClangScanDeps darwin-specific test not to
 run in cross compilation

The test added in 316a29603228c5d5000e0ddf8dfba2a494ac7ee9 fails when
run on MacOS but targeting Linux as a cross compiler.
---
 clang/test/ClangScanDeps/canonicalize-macros-multiarch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/test/ClangScanDeps/canonicalize-macros-multiarch.c 
b/clang/test/ClangScanDeps/canonicalize-macros-multiarch.c
index 4195b55a53af8..3dc09b5b680f4 100644
--- a/clang/test/ClangScanDeps/canonicalize-macros-multiarch.c
+++ b/clang/test/ClangScanDeps/canonicalize-macros-multiarch.c
@@ -1,7 +1,7 @@
 // Verify cc1 jobs from a multi-arch driver command perform identical macro
 // canonicalization.
 
-// REQUIRES: system-darwin
+// REQUIRES: system-darwin && target={{.*}}-{{darwin|macos}}{{.*}}
 // RUN: rm -rf %t
 // RUN: split-file %s %t
 // RUN: sed -e "s|DIR|%/t|g" %t/cdb.json.in > %t/cdb.json

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to