This is an archive of the discontinued LLVM Phabricator instance.

Make sure dsymutil temporary files (with names derived from input files) get created under %T.
ClosedPublic

Authored by tra on Aug 5 2015, 3:52 PM.

Details

Reviewers
friss
echristo

Diff Detail

Event Timeline

tra updated this revision to Diff 31409.Aug 5 2015, 3:52 PM
tra retitled this revision from to Make sure dsymutil temporary files (with names derived from input files) get created under %T..
tra updated this object.
tra added reviewers: echristo, friss.
tra added a subscriber: llvm-commits.
echristo accepted this revision.Aug 5 2015, 3:54 PM
echristo edited edge metadata.

LGTM.

-eric

This revision is now accepted and ready to land.Aug 5 2015, 3:54 PM
friss edited edge metadata.Aug 5 2015, 3:59 PM

Wait wait wait. As the comment just bellow your edit state, this test isn't supposed to create files. If it did, then it's a bug. What did you see?

friss added a comment.Aug 5 2015, 4:00 PM

(Of course you can go ahead with the patch if it fixes an issue, I just need to understand what's happening)

tra added a subscriber: tra.Aug 5 2015, 4:05 PM

Change in r244087:
getOutputFileName() apparently derives the name of the temp file from the
input file name and that temp file does get created.
Or, rather, fails to get created if source tree with input files is
read-only.

--Artem

friss added a comment.Aug 5 2015, 4:15 PM

Thanks. Yeah I create the temporary files to ensure uniqueness. They never get written to, but they get created and deleted. I'll change the logic not to create them.

tra closed this revision.Aug 10 2015, 3:25 PM