[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:57:01 PST 2025
https://github.com/mgcarrasco updated https://github.com/llvm/llvm-project/pull/166392
>From d5cf7ce8c47c291c560eb18939fa2c902e450629 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..67d894e2eb506 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-unknown-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