[clang] [clang][PCH] Add x86 target requirement to PCH test (PR #241763)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 12 02:04:50 PST 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Steffen Larsen (steffenlarsen)
<details>
<summary>Changes</summary>
PCH/pch-clangast-raw-section.c was failing on non-x86 systems in post-commit testing of #<!-- -->237198. This is fixed by adding the appropriate target requirement to the test.
---
Full diff: https://github.com/llvm/llvm-project/pull/241763.diff
1 Files Affected:
- (modified) clang/test/PCH/pch-clangast-raw-section.c (+1)
``````````diff
diff --git a/clang/test/PCH/pch-clangast-raw-section.c b/clang/test/PCH/pch-clangast-raw-section.c
index 500fa53cfb801..a34c26f236691 100644
--- a/clang/test/PCH/pch-clangast-raw-section.c
+++ b/clang/test/PCH/pch-clangast-raw-section.c
@@ -1,3 +1,4 @@
+// REQUIRES: x86-registered-target
// RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-pch -fmodule-format=obj %S/pchpch1.h -o - | llvm-readelf --sections - | FileCheck %s
// Ensure the serialized AST is emitted via llvm.raw.sections metadata into
``````````
</details>
https://github.com/llvm/llvm-project/pull/241763
More information about the cfe-commits
mailing list