[clang] [HIP] Make `--no-offloadlib` not link HIP's RT and alias `--no-hip-rt` (PR #177677)
Shilei Tian via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 23 16:54:43 PST 2026
================
@@ -1347,8 +1347,6 @@ def mprintf_kind_EQ : Joined<["-"], "mprintf-kind=">, Group<m_Group>,
let Group = hip_Group in {
def hip_link : Flag<["--"], "hip-link">, Group<opencl_Group>,
HelpText<"Link clang-offload-bundler bundles for HIP">;
-def no_hip_rt: Flag<["-"], "no-hip-rt">, Group<hip_Group>,
----------------
shiltian wrote:
I agree with @sarnex on the host vs device runtime difference. HIP runtime really just means the host library, and HIP itself also doesn't provide/require any device side libraries. I'm not sure mixing them or combining the arguments is a good design other than just making things cleaner for someone knows all the internals very much.
https://github.com/llvm/llvm-project/pull/177677
More information about the cfe-commits
mailing list