[clang] [Clang] Restrict ClangScanDeps darwin-specific test not to run in cross-compile (PR #213884)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 4 02:30:14 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Victor Campos (vhscampos)
<details>
<summary>Changes</summary>
The test added in 316a29603228c5d5000e0ddf8dfba2a494ac7ee9 fails when run on MacOS but targeting Linux as a cross compiler.
---
Full diff: https://github.com/llvm/llvm-project/pull/213884.diff
1 Files Affected:
- (modified) clang/test/ClangScanDeps/canonicalize-macros-multiarch.c (+1-1)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/213884
More information about the cfe-commits
mailing list