[clang] [HIP] Pass HIP library directly and refactor (PR #176019)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 14 11:52:59 PST 2026


================
@@ -516,11 +516,16 @@ void MSVCToolChain::addSYCLIncludeArgs(const ArgList &DriverArgs,
   SYCLInstallation->addSYCLIncludeArgs(DriverArgs, CC1Args);
 }
 
-void MSVCToolChain::AddHIPRuntimeLibArgs(const ArgList &Args,
-                                         ArgStringList &CmdArgs) const {
-  CmdArgs.append({Args.MakeArgString(StringRef("-libpath:") +
-                                     RocmInstallation->getLibPath()),
-                  "amdhip64.lib"});
+void MSVCToolChain::addOffloadRTLibs(unsigned ActiveKinds, const ArgList &Args,
+                                     ArgStringList &CmdArgs) const {
+  if (Args.hasArg(options::OPT_no_hip_rt) || Args.hasArg(options::OPT_r))
----------------
jhuber6 wrote:

Apparently not, this is old behavior and regresses the tests if changed

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


More information about the cfe-commits mailing list