forked from OSchip/llvm-project
19017c2435
The dependency scanner already generates canonical -cc1 command lines that can be used to compile discovered modular dependencies. For translation unit command lines, the scanner only generates additional driver arguments the build system is expected to append to the original command line. While this works most of the time, there are situations where that's not the case. For example with `-Wunused-command-line-argument`, Clang will complain about the `-fmodules-cache-path=` argument that's not being used in explicit modular builds. Combine that with `-Werror` and the build outright fails. To prevent such failures, this patch changes the dependency scanner to return the full driver command line to compile the original translation unit. This gives us more opportunities to massage the arguments into something reasonable. Reviewed By: Bigcheese Differential Revision: https://reviews.llvm.org/D118986 |
||
---|---|---|
.. | ||
Inputs | ||
diagnostics.c | ||
error.cpp | ||
has_include_if_elif.cpp | ||
header-search-pruning.cpp | ||
header_stat_before_open.m | ||
headerwithdirname.cpp | ||
headerwithdirnamefollowedbyinclude.cpp | ||
modulemap-via-vfs.m | ||
modules-context-hash.c | ||
modules-fmodule-name-no-module-built.m | ||
modules-full-by-mod-name.cpp | ||
modules-full.cpp | ||
modules-inferred-explicit-build.m | ||
modules-inferred.m | ||
modules-pch-common-submodule.c | ||
modules-pch-common-via-submodule.c | ||
modules-pch.c | ||
modules-symlink.c | ||
modules.cpp | ||
no-werror.cpp | ||
preprocess_minimized_pragmas.cpp | ||
preserved-args.c | ||
regular_cdb.cpp | ||
relative_directory.cpp | ||
removed-args.c | ||
resource_directory.c | ||
static-analyzer.c | ||
strip_diag_serialize.cpp | ||
subframework_header_dir_symlink.m | ||
symlink.cpp | ||
target-filename.cpp | ||
vfsoverlay.cpp |