[PATCH] D106789: [clang][Driver] Expose driver mode detection logic
Hans Wennborg via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 7 04:41:54 PDT 2021
hans added a comment.
Somehow this seems to have broken the `--driver-mode=` flag when passed to clang-cl. The flag is supposed to override the mode inferred from the filename, but it's not working anymore. For example:
Before:
$ bin/clang-cl --driver-mode=gcc -target x86_64 -c /tmp/a.c -###
clang version 13.0.0 (https://github.com/llvm/llvm-project 7dc9d7373186827a92d6ca08ad7192208dfea389)
[...]
After:
$ bin/clang-cl --driver-mode=gcc -target x86_64 -c /tmp/a.c -###
clang-13: warning: unknown argument ignored in clang-cl: '-target' [-Wunknown-argument]
clang version 13.0.0 (https://github.com/llvm/llvm-project ce90b60bd09da41c52006374a4715425122572ab)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: /work/llvm.monorepo/build.release/bin
clang-13: error: no such file or directory: 'x86_64'
[...]
Can you take a look?
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