[clang] [NFC] [Build Fix] Fix failing test case due to missing host arch. (PR #166392)

Manuel Carrasco via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 4 07:54:31 PST 2025


https://github.com/mgcarrasco created https://github.com/llvm/llvm-project/pull/166392

This fixes a typo introduced in #165606 which makes the test case fail.

>From 0fdc0ec3a01e32285f01a945319f4706e83a18cb Mon Sep 17 00:00:00 2001
From: Manuel Carrasco <Manuel.Carrasco at amd.com>
Date: Tue, 4 Nov 2025 09:51:11 -0600
Subject: [PATCH] [clang][Driver] NFC: Fix failing test case due to missing
 host arch.

---
 clang/test/Driver/hip-spirv-translator-new-driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/test/Driver/hip-spirv-translator-new-driver.c b/clang/test/Driver/hip-spirv-translator-new-driver.c
index 315a74635b9b3..979fce5b8bbe3 100644
--- a/clang/test/Driver/hip-spirv-translator-new-driver.c
+++ b/clang/test/Driver/hip-spirv-translator-new-driver.c
@@ -2,7 +2,7 @@
 // The input and output files cannot be the same.
 
 // RUN: %clang --offload-new-driver -### -save-temps -nogpuinc -nogpulib \
-// RUN: --offload-arch=amdgcnspirv -x hip %s 2>&1 \
+// RUN: --target=x86_64-linux-gnu --offload-arch=amdgcnspirv -x hip %s 2>&1 \
 // RUN: | FileCheck %s
 
 // CHECK-NOT: {{".*clang-linker-wrapper.*"}} {{.*}} "-o" "[[OUTPUT_FILE:.*.o]]" {{.*}}"[[OUTPUT_FILE]]"



More information about the cfe-commits mailing list