This is an archive of the discontinued LLVM Phabricator instance.

Fix lld command on Windows for many tests
ClosedPublic

Authored by amccarth on Mar 20 2015, 2:35 PM.

Details

Reviewers
zturner
Summary

lld on Windows doesn't yet support -L, furthermore, the import library is in the lib directory rather than the bin directory.

This fix allows several more of the test programs to compile and link successfully.

Diff Detail

Event Timeline

amccarth updated this revision to Diff 22371.Mar 20 2015, 2:35 PM
amccarth retitled this revision from to Fix lld command on Windows for many tests.
amccarth updated this object.
amccarth edited the test plan for this revision. (Show Details)
amccarth added a reviewer: zturner.
amccarth added a subscriber: Unknown Object (MLST).
zturner added inline comments.Mar 23 2015, 9:31 AM
test/lldbtest.py
1498

Not crazy about this relative path. Maybe if we're on Windows, we should be setting up an environment variable like LLDB_WIN32_IMPLIB_DIR. check dotest.py:setupSysPath() for a good place to do this. Then we can just read that environment variable here. Same comment for the location below.

amccarth updated this revision to Diff 22583.Mar 24 2015, 11:03 AM

Now computes the import library directory and stashes it in the environment.

zturner accepted this revision.Oct 15 2015, 1:45 PM
zturner edited edge metadata.
This revision is now accepted and ready to land.Oct 15 2015, 1:45 PM
Eugene.Zelenko added a subscriber: Eugene.Zelenko.

Committed in r233416.