================ @@ -527,9 +527,11 @@ Expected<StringRef> clang(ArrayRef<StringRef> InputFiles, const ArgList &Args) { // Forward all of the `--offload-opt` and similar options to the device. if (linkerSupportsLTO(Args)) { - for (auto &Arg : Args.filtered(OPT_offload_opt_eq_minus, OPT_mllvm)) + for (auto &Arg : Args.filtered(OPT_offload_opt_eq_minus, OPT_mllvm)) { + CmdArgs.push_back(Args.MakeArgString("-Xlinker")); ---------------- jdenny-ornl wrote:
Thanks. Applied. https://github.com/llvm/llvm-project/pull/102483 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits