forked from OSchip/llvm-project
11ee699b3c
When `-fno-integrated-as` is passed to the Clang driver (or set by default by a specific toolchain), it will construct an assembler job in addition to the cc1 job. Similarly, the `-fembed-bitcode` driver flag will create additional cc1 job that reads LLVM IR file. The Clang tooling library only cares about the job that reads a source file. Instead of relying on the fact that the client injected `-fsyntax-only` to the driver invocation to get a single `-cc1` invocation that reads the source file, this patch filters out such jobs from `Compilation` automatically and ignores the rest. This fixes a test failure in `ClangScanDeps/headerwithname.cpp` and `ClangScanDeps/headerwithnamefollowedbyinclude.cpp` on AIX reported here: https://reviews.llvm.org/D103461#2841918 and `clang-scan-deps` failures with `-fembed-bitcode`. Depends on D106788. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D105695 |
||
---|---|---|
.. | ||
Inputs | ||
auto-detect-from-source-parent-of-cwd.cpp | ||
auto-detect-from-source-parent.cpp | ||
auto-detect-from-source.cpp | ||
clang-check-analyzer.cpp | ||
clang-check-args.cpp | ||
clang-check-ast-dump.cpp | ||
clang-check-autodetect-dir.cpp | ||
clang-check-builtin-headers.cpp | ||
clang-check-chdir.cpp | ||
clang-check-extra-arg.cpp | ||
clang-check-fixit.cpp | ||
clang-check-mac-libcxx-abspath.cpp | ||
clang-check-mac-libcxx-fixed-compilation-db.cpp | ||
clang-check-mac-libcxx-relpath.cpp | ||
clang-check-pwd.cpp | ||
clang-check-rel-path.cpp | ||
clang-check-strip-o.cpp | ||
clang-check-syntax-tree-dump.cpp | ||
clang-check.cpp | ||
clang-diff-args.test | ||
clang-diff-ast.cpp | ||
clang-diff-basic.cpp | ||
clang-diff-bottomup.cpp | ||
clang-diff-html.test | ||
clang-diff-json.cpp | ||
clang-diff-opt.cpp | ||
clang-diff-topdown.cpp | ||
fixed-database.cpp | ||
lit.local.cfg | ||
ms-asm-no-target.cpp | ||
multi-jobs.cpp | ||
pch.cpp |