[clang] [Clang] Simplify specifying passes via -Xoffload-linker (PR #102483)
Joel E. Denny via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 8 08:20:40 PDT 2024
================
@@ -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
More information about the cfe-commits
mailing list