[clang] Add a target triple to clang/test/Modules/pr189415.cppm (PR #189937)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 1 03:48:32 PDT 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-modules
Author: Hans Wennborg (zmodem)
<details>
<summary>Changes</summary>
Not all targets support thread_local, so in some environments the test would fail with:
the test would fail with
tools/clang/test/Modules/Output/pr189415.cppm.tmp/counter.cppm:6:1:
error: thread-local storage is not supported for the current target
Follow-up to #<!-- -->189796
---
Full diff: https://github.com/llvm/llvm-project/pull/189937.diff
1 Files Affected:
- (modified) clang/test/Modules/pr189415.cppm (+2-2)
``````````diff
diff --git a/clang/test/Modules/pr189415.cppm b/clang/test/Modules/pr189415.cppm
index 86c66124a618e..6ead0731f5128 100644
--- a/clang/test/Modules/pr189415.cppm
+++ b/clang/test/Modules/pr189415.cppm
@@ -2,9 +2,9 @@
// RUN: mkdir -p %t
// RUN: split-file %s %t
//
-// RUN: %clang_cc1 -std=c++20 %t/counter.cppm -triple %itanium_abi_triple \
+// RUN: %clang_cc1 -std=c++20 %t/counter.cppm -triple x86_64-pc-linux-gnu \
// RUN: -emit-reduced-module-interface -o %t/counter.pcm
-// RUN: %clang_cc1 -std=c++20 %t/user.cpp -triple %itanium_abi_triple -fprebuilt-module-path=%t \
+// RUN: %clang_cc1 -std=c++20 %t/user.cpp -triple x86_64-pc-linux-gnu -fprebuilt-module-path=%t \
// RUN: -disable-llvm-passes -emit-llvm -o - | FileCheck %s
//--- counter.cppm
``````````
</details>
https://github.com/llvm/llvm-project/pull/189937
More information about the cfe-commits
mailing list