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

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


================
@@ -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 \
----------------
jhuber6 wrote:

```suggestion
// RUN: --target=x86_64-unknown-linux-gnu --offload-arch=amdgcnspirv -x hip %s 2>&1 \
```

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


More information about the cfe-commits mailing list