[clang] [llvm] [ClangLinkerWrapper][SPIRV] Fix embed bitcode option (PR #213137)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 31 07:45:10 PDT 2026
================
@@ -586,8 +586,13 @@ Expected<StringRef> clang(ArrayRef<StringRef> InputFiles, const ArgList &Args,
if (SaveTemps && linkerSupportsLTO(Args))
CmdArgs.push_back("-Wl,--save-temps");
- if (Args.hasArg(OPT_embed_bitcode))
- CmdArgs.push_back("-Wl,--lto-emit-llvm");
+ if (Args.hasArg(OPT_embed_bitcode)) {
----------------
jhuber6 wrote:
We should probably rework this, I'm thinking that in the future we should have `-emit-llvm` be a valid linker step for all targets and make a new LLVM tool that it uses, (Or maybe a clang tool?)
https://github.com/llvm/llvm-project/pull/213137
More information about the llvm-commits
mailing list