llvm-project
ba8c9659 - [Clang] Do not implicitly link C libraries for the GPU targets (#109052)

Commit
1 year ago
[Clang] Do not implicitly link C libraries for the GPU targets (#109052) Summary: I initially thought that it would be convenient to automatically link these libraries like they are for standard C/C++ targets. However, this created issues when trying to use C++ as a GPU target. This patch moves the logic to now implicitly pass it as part of the offloading toolchain instead, if found. This means that the user needs to set the target toolchain for the link job for automatic detection, but can still be done manually via `-Xoffload-linker -lc`.
Author
Parents
Loading