This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Do not increment ActionCount for precompiled headers.
AbandonedPublic

Authored by manojgupta on Jun 20 2017, 3:32 PM.

Details

Summary

If a .h file is specifed as input, it gets compiled to a PCH file.
Handle the PCH Action and do not throw the error:
"cannot specify -o when generating multiple output files"

This fixes PR33533.

Diff Detail

Event Timeline

manojgupta created this revision.Jun 20 2017, 3:32 PM

I am not sure what is the expected behavior. Maybe clang is doing the right thing in rejecting.
But, this creates an issue in ChromeOS land where a package fails to build with clang (https://bugs.chromium.org/p/chromium/issues/detail?id=735206).

manojgupta abandoned this revision.Aug 4 2017, 2:53 PM