[flang-commits] [clang] [flang] [Flang-new][OpenMP] Add offload related flags for AMDGPU (PR #96742)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Thu Jun 27 02:33:06 PDT 2024
================
@@ -333,6 +333,9 @@ void Flang::AddAMDGPUTargetArgs(const ArgList &Args,
StringRef Val = A->getValue();
CmdArgs.push_back(Args.MakeArgString("-mcode-object-version=" + Val));
}
+
+ const ToolChain &TC = getToolChain();
+ TC.addClangTargetOptions(Args, CmdArgs, Action::OffloadKind::OFK_OpenMP);
----------------
tblah wrote:
Does that mean that this change would also lead to adding these flags when building for Nvidia GPU with flang?
https://github.com/llvm/llvm-project/pull/96742
More information about the flang-commits
mailing list