This is an archive of the discontinued LLVM Phabricator instance.

lld-link: Fix default output name with /dll flag.
ClosedPublic

Authored by thakis on Apr 20 2016, 5:53 AM.

Details

Reviewers
ruiu
Summary

If /dll is passed, the default output filename should be foo.dll, not foo.exe.

Diff Detail

Event Timeline

thakis updated this revision to Diff 54351.Apr 20 2016, 5:53 AM
thakis retitled this revision from to lld-link: Fix default output name with /dll flag..
thakis updated this object.
thakis added a reviewer: ruiu.
thakis added a subscriber: llvm-commits.
ruiu accepted this revision.Apr 20 2016, 2:04 PM
ruiu edited edge metadata.

LGTM. Thanks!

This revision is now accepted and ready to land.Apr 20 2016, 2:04 PM
thakis closed this revision.Apr 20 2016, 3:40 PM

r266929, thanks!

The test is now failing on the bots: Adding /dll means that lld now calls lib.exe to make an import library, and lib.exe isn't on the path (and on non-Windows bots, not even available). Do you have a suggestion for how to fix this? Do I revert the change to the test file (and then maybe reland it once generating import libraries doesn't rely on lib.exe anymore)? Are there tests for import library generation? How do these handle that?

I added a "REQUIRES: winlib" in r266935 which will probably help; looks like that what other tests do.

ruiu added a comment.Apr 20 2016, 4:48 PM

Yes, that's adding the REQUIRES is we do for testing features that depend on lib.exe.