llvmorg-github-actions[bot] wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Wenju He (wenju-he)

<details>
<summary>Changes</summary>

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.

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


1 Files Affected:

- (modified) clang/test/Driver/hip-include-path.hip (+1) 


``````````diff
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 \

``````````

</details>


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

Reply via email to