This is an archive of the discontinued LLVM Phabricator instance.

Attempt to fix build on Windows with LLVM_ENABLE_PIC=OFF
ClosedPublic

Authored by thakis on Jan 25 2019, 1:12 PM.

Details

Summary

libclang can be built in shared or static mode. On Windows, with LLVM_ENABLE_PIC=OFF, it was built in neither mode, leading to clients of libclang (c-index-test, c-arcmt-test) failing to link with it set.

Since PIC isn't really a thing on Windows, build libclang in shared mode when LLVM_ENABLE_PIC=OFF on Windows. This is also somewhat symmetric with the existing ENABLE_STATIC a few lines down.

Diff Detail

Event Timeline

thakis created this revision.Jan 25 2019, 1:12 PM
zturner accepted this revision.Jan 25 2019, 1:35 PM
This revision is now accepted and ready to land.Jan 25 2019, 1:35 PM
This revision was automatically updated to reflect the committed changes.