This is an archive of the discontinued LLVM Phabricator instance.

[make & configure] Don't strip leading underscore on Win64
Needs ReviewPublic

Authored by loladiro on Aug 22 2014, 8:50 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Unlike the win32 abi, the win64 abi doesn't have leading underscores in symbols, so stripping them from the nm output causes symbols without leading underscores to not appear at all and symbols with leading underscores to be missing said underscore, causing an error when attempting to compile the shared library. This fixes that.

Diff Detail

Event Timeline

loladiro updated this revision to Diff 12874.Aug 22 2014, 8:50 PM
loladiro retitled this revision from to [make & configure] Don't strip leading underscore on Win64.
loladiro updated this object.
loladiro edited the test plan for this revision. (Show Details)
loladiro set the repository for this revision to rL LLVM.
loladiro added a subscriber: Unknown Object (MLST).
asl added a subscriber: asl.Aug 23 2014, 9:58 AM
asl added inline comments.
tools/llvm-shlib/Makefile
92

Can we instead of full copy & paste conditionalize the pattern only?

loladiro added inline comments.Aug 23 2014, 10:08 AM
tools/llvm-shlib/Makefile
92

Sure, any thoughts on how to do that? You can't really put the ifeq inside the command, and using string processing to assemble the command seemed worse to me than this.

asl added a comment.Sep 9 2014, 3:27 AM

Have you forgot to attach the updated patch? I do not see that something was changed since the original submission.

tools/llvm-shlib/Makefile
92

Put it outside the command into a variable?

loladiro updated this revision to Diff 13476.Sep 9 2014, 9:15 AM

Updated as per review comment.

Bump. Does this look good now?