This is an archive of the discontinued LLVM Phabricator instance.

Check LLVM_BUILD_LLVM_C_DYLIB before building the C DLL with MSVC
ClosedPublic

Authored by aaron.ballman on Apr 6 2020, 8:48 AM.

Details

Reviewers
xbolva00
Summary

I think this may have been an oversight when the functionality originally landed, but it seems there is no other way to disable building the LLVM C bindings with MSVC without this change. I freely admit this is not my area of expertise though.

FWIW, I need this functionality because llvm-nm does not appear to work properly in Debug builds on Windows (executing gen-msvc-exports.py runs llvm-nm which fails because it doesn't understand any command line arguments due to crashing) and I needed a workaround to be able to build again.

Diff Detail

Event Timeline

aaron.ballman created this revision.Apr 6 2020, 8:48 AM
xbolva00 accepted this revision.Apr 7 2020, 7:57 AM

Ok, makes sense.

This revision is now accepted and ready to land.Apr 7 2020, 7:57 AM