================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to