[PATCH] D126226: [OpenMP] Add `-Xoffload-linker` to forward input to the device linker

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 23 13:11:30 PDT 2022


MaskRay added a comment.

IIRC there is no built-in way supporting multiple (but fixed number of) values for an option (e.g. `-Xoffload-linker-<triple> <arg>`). In D105330 <https://reviews.llvm.org/D105330> (llvm-nm option refactoring) I used a hack to support `-s __DATA __data`.
The multiple-value support for OptTable does not allow positional arguments after the option.

Consider something like `-Xoffload-linker-triple <triple>=<arg>`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126226/new/

https://reviews.llvm.org/D126226



More information about the cfe-commits mailing list