This is an archive of the discontinued LLVM Phabricator instance.

[clang] PR21195: Emit .gcno files to the proper location.
ClosedPublic

Authored by danalbert on Oct 8 2014, 10:04 PM.

Details

Summary

When building with coverage, -no-integrated-as, and -c, the driver was
emitting -cc1 -coverage-file pointing at a file in /tmp. Ensure the
coverage file is emitted in the same directory as the output file.

Diff Detail

Event Timeline

danalbert updated this revision to Diff 14628.Oct 8 2014, 10:04 PM
danalbert retitled this revision from to [clang] PR21195: Emit .gcno files to the proper location..
danalbert updated this object.
danalbert edited the test plan for this revision. (Show Details)
danalbert added a reviewer: nlewycky.
danalbert added a subscriber: Unknown Object (MLST).
danalbert updated this revision to Diff 14629.Oct 8 2014, 11:15 PM

Add an additional test with a relative -o path.

danalbert accepted this revision.Oct 9 2014, 4:51 PM
danalbert added a reviewer: danalbert.

Justin LGTM'd in mailing list.

Also discussed on mailing list: I plan to extend FileCheck to be able to handle --define PWD=pwd so that I can more accurately test that the .gcno file gets created in the current directory in the case of not passing -o.

This revision is now accepted and ready to land.Oct 9 2014, 4:51 PM

Submitted as r219460.

danalbert closed this revision.Oct 13 2014, 12:04 PM