================ @@ -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")); ---------------- jhuber6 wrote:
```suggestion CmdArgs.append({"-Xlinker", Args.MakeArgString("--plugin-opt=" + StringRef(Arg->getValue()))}); ``` I like having these joined arguments in a single command, also you don't need `MakeArgString` for a C string since it already has permanent storage. 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