[PATCH] D140224: [Driver] Revert D139717 and add -Xparser instead

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 16 10:21:45 PST 2022


MaskRay added a comment.

In D140224#4001748 <https://reviews.llvm.org/D140224#4001748>, @manojgupta wrote:

> Without -Xcompiler, ChromeOS code will break. It may not be supported by GCC but it is supported in some other compilers like Cuda and a few others if you search. Also being supported by libtool makes it more important to keep it working.

Can you give more information how ChromeOS will break? My understanding is that libtool confumses `-Xcompiler foo` and passes `foo` to Clang. Clang Driver is not supposed to get `-Xcompiler` from libtool.
But I don't know how CUDA comes into play. It's possible the `-Xcompiler` interaction is not intended. If there is indeed problematic but widespread misuse of `-Xcompiler`, I can certainly add an ignored `-Xcompiler`, but I want to understand the problem first.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D140224



More information about the cfe-commits mailing list