[clang] Add a target triple to clang/test/Modules/pr189415.cppm (PR #189937)

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 1 03:48:00 PDT 2026


https://github.com/zmodem created https://github.com/llvm/llvm-project/pull/189937

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

>From ba76645eac0fbd8364ceea22c0099b38dd242e77 Mon Sep 17 00:00:00 2001
From: Hans Wennborg <hans at chromium.org>
Date: Wed, 1 Apr 2026 12:45:50 +0200
Subject: [PATCH] Add a target triple to clang/test/Modules/pr189415.cppm

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
---
 clang/test/Modules/pr189415.cppm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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



More information about the cfe-commits mailing list