Page MenuHomePhabricator

[Tooling] CompilationDatabase should be able to strip position arguments when `-fsyntax-only` is used
ClosedPublic

Authored by arphaman on Jun 27 2017, 7:41 AM.

Details

Summary

Right now, Clang fails to create a fixed compilation database when the compilation arguments use -fsyntax-only instead of -c. The reported error is: "warning: no compile jobs found". This happens because we don't look at the compilation job when stripping the positional arguments.

Diff Detail

Repository
rL LLVM

Event Timeline

arphaman created this revision.Jun 27 2017, 7:41 AM
This revision is now accepted and ready to land.Jun 28 2017, 3:25 AM
This revision was automatically updated to reflect the committed changes.