https://github.com/wenju-he created 
https://github.com/llvm/llvm-project/pull/214656

Fix test error `Unknown command line argument '-amdgpu-internalize-symbols'` 
when AMDGPU isn't in LLVM_TARGETS_TO_BUILD.

The test starts failing after 9bbd728946da which adds -fsyntax-only that 
invokes -cc1 for the amdgcn-amd-amdhsa target and passes `-mllvm 
-amdgpu-internalize-symbols` to AMDGPUToolChain.

>From bda94a83dcb75a7d8d04c3c889ed621a86e03c26 Mon Sep 17 00:00:00 2001
From: Wenju He <[email protected]>
Date: Fri, 7 Aug 2026 09:50:39 +0200
Subject: [PATCH] [HIP][Test] Fix hip-include-path.hip fail when AMDGPU isn't
 in LLVM_TARGETS_TO_BUILD

Fix test error `Unknown command line argument '-amdgpu-internalize-symbols'`
when AMDGPU isn't in LLVM_TARGETS_TO_BUILD.

The test starts failing after 9bbd728946da which adds -fsyntax-only that
invokes -cc1 for the amdgcn-amd-amdhsa target and passes
`-mllvm -amdgpu-internalize-symbols` to AMDGPUToolChain.
---
 clang/test/Driver/hip-include-path.hip | 1 +
 1 file changed, 1 insertion(+)

diff --git a/clang/test/Driver/hip-include-path.hip 
b/clang/test/Driver/hip-include-path.hip
index 8ad978c917173..96ea5ee08d2b9 100644
--- a/clang/test/Driver/hip-include-path.hip
+++ b/clang/test/Driver/hip-include-path.hip
@@ -1,4 +1,5 @@
 // UNSUPPORTED: system-windows
+// REQUIRES: amdgpu-registered-target
 
 // RUN: %clang -c -### --target=x86_64-unknown-linux-gnu 
--cuda-gpu-arch=gfx900 \
 // RUN:   -std=c++11 --rocm-path=%S/Inputs/rocm -nogpulib %s 2>&1 \

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to