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

via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 4 07:55:05 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Manuel Carrasco (mgcarrasco)

<details>
<summary>Changes</summary>

This fixes a typo introduced in #<!-- -->165606 which makes the test case fail.

---
Full diff: https://github.com/llvm/llvm-project/pull/166392.diff


1 Files Affected:

- (modified) clang/test/Driver/hip-spirv-translator-new-driver.c (+1-1) 


``````````diff
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]]"

``````````

</details>


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


More information about the cfe-commits mailing list