[PATCH] D106789: [clang][Driver] Expose driver mode detection logic

Kadir Cetinkaya via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 7 06:19:50 PDT 2021


kadircet added a comment.

Argh, sorry for the mess, sent out D109361 <https://reviews.llvm.org/D109361>.

FYI, before this patch clang preferred the last `--driver-mode` in case of multiple ones and started preferring the first one with this patch. In https://github.com/llvm/llvm-project/blob/main/clang/tools/driver/driver.cpp#L474 it always inserts a `--driver-mode` matching the program name at the beginning of the command line, hence it was always preferring CL mode even though you explicitly mentioned GCC afterwards.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D106789



More information about the cfe-commits mailing list