[PATCH] D39799: [Tooling] Use FixedCompilationDatabase when `compile_flags.txt` is found.

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 9 12:52:53 PST 2017

sammccall added a comment.

In https://reviews.llvm.org/D39799#920780, @JVApen wrote:

> How does this new file know if it should handle it's flags as  it does in clang.exe or clang-cl.exe?

It doesn't set argv[0], so it's treated like `clang` by default.

I believe the flag `--driver-mode={gcc,g++,cpp,cl}` can be used to change this.
(I should add this to the brief doc)



More information about the cfe-commits mailing list