This is an archive of the discontinued LLVM Phabricator instance.

[lld] Avoid creating files outside of work directory.
ClosedPublic

Authored by herhut on Mar 4 2020, 5:42 AM.

Details

Summary

A test is passing -o - to lld in the hope of writing the output to
standard out but that is not the case. Instead it creates a file named
-.lto.o. This fixes it by creating a temporary file in the work
directory.

Diff Detail

Event Timeline

herhut created this revision.Mar 4 2020, 5:42 AM
bkramer accepted this revision.Mar 4 2020, 5:43 AM
bkramer added a subscriber: bkramer.

looks good

This revision is now accepted and ready to land.Mar 4 2020, 5:43 AM
This revision was automatically updated to reflect the committed changes.