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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits