================ @@ -342,6 +342,10 @@ void Flang::AddAMDGPUTargetArgs(const ArgList &Args, StringRef Val = A->getValue(); CmdArgs.push_back(Args.MakeArgString("-mcode-object-version=" + Val)); } + + // Check ROCm path if specified + const ToolChain &TC = getToolChain(); + TC.getDeviceLibs(Args); ---------------- DominikAdamski wrote:
I need it to invoke `AMDGPUOpenMPToolChain::getDeviceLibs` to check if specified ROCm path is correct. https://github.com/llvm/llvm-project/pull/88190 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits