MSVC's driver accepts all unknown arguments but warns about them. clang
by default rejects all unknown arguments. This causes issues
specifically with build systems such as autoconf which liberally pass
things such as $LDFLAGS to the compiler and expect everything to work.
This patch teaches clang-cl to ignore unknown driver arguments.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
lgtm other than the warning group.
test/Misc/warning-flags.c | ||
---|---|---|
21 ↗ | (On Diff #45796) | This list shouldn't grow, we should have a warning group for this. -W[no-]unknown-argument sounds good to me. |
Comment Actions
Maybe this behavior should be called out in the Command-Line Options section under clang-cl in docs/UsersManual.rst?