[clang] [OFFLOAD] Allow partial linkage when using spirv linker (PR #181263)
Nick Sarnie via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 13 10:57:52 PST 2026
================
@@ -149,6 +149,7 @@ void SPIRV::Linker::ConstructJob(Compilation &C, const JobAction &JA,
ArgStringList CmdArgs;
AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs, JA);
+ CmdArgs.push_back("--allow-partial-linkage");
----------------
sarnex wrote:
I don't think it's right to do this in general, can you try to restrict the change to only do this if we're openmp offloading? if you get stuck trying to detect that here let me know
https://github.com/llvm/llvm-project/pull/181263
More information about the cfe-commits
mailing list