This is an archive of the discontinued LLVM Phabricator instance.

If MSVC and cross compiling use CMAKE_NM for gen_exports_msvc
AbandonedPublic

Authored by lanza on Mar 29 2019, 1:53 PM.

Details

Summary

LLVM-C.dll was recently set to build by default. However, the script
attempts to use the just-built llvm-nm. If you are crosscompiling then
this tool is for the wrong platform. In the case that you are
croscompiling, instead opt to use the CMAKE_NM.

Diff Detail

Event Timeline

lanza created this revision.Mar 29 2019, 1:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 29 2019, 1:53 PM
lanza edited reviewers, added: Wallbraker; removed: serge-sans-paille.
smeenai requested changes to this revision.Mar 29 2019, 3:58 PM

Sorry, I went down a rabbit hole reviewing this, and ended up writing an alternate solution which just generates a native llvm-nm using the same mechanism as tblgen. Gimme a little bit to put that up.

This revision now requires changes to proceed.Mar 29 2019, 3:58 PM
lanza added a comment.Mar 29 2019, 4:09 PM

@smeenai sounds good to me!

lanza abandoned this revision.Mar 29 2019, 4:09 PM