[clang] Remove Linux search paths on Windows (PR #113628)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 18 09:33:54 PST 2024
================
@@ -6440,7 +6440,8 @@ const ToolChain &Driver::getToolChain(const ArgList &Args,
TC = std::make_unique<toolchains::NVPTXToolChain>(*this, Target, Args);
break;
case llvm::Triple::AMDHSA:
- TC = std::make_unique<toolchains::ROCMToolChain>(*this, Target, Args);
+ TC = std::make_unique<toolchains::ROCMToolChain>(*this, Target, Args,
+ Target.isOSWindows());
----------------
jhuber6 wrote:
Do we actually require the ROCm installation from the device's TC? I guess it'd be used when making the device interface? The `HIPAMDToolChain` has a reference to the host toolchain, so I'd argue that we should use that one's ROCm installation and never use the device one.
https://github.com/llvm/llvm-project/pull/113628
More information about the cfe-commits
mailing list