[PATCH] D139717: Revert "[Driver] Remove Joined -X"

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 15 00:10:11 PST 2022


MaskRay added a comment.

In D139717#3988902 <https://reviews.llvm.org/D139717#3988902>, @manojgupta wrote:

> We use -Xcompiler and -Xlinker which are passed in programs and they raise error now.

Sorry, I do not understand. `clang -Xlinker --verbose a.c` works well. `-Xcompiler` is invalid in GCC. How do your programs use `-Xlinker` or `-Xcompiler`.
If `-Xcompiler foo` is used similar to `-Xclang foo`, it seems very wrong to silently ignore `-Xcompiler` as `foo` will be seen as a positional argument...


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D139717



More information about the cfe-commits mailing list