HomePhabricator

[CMake] Fix logic error: NOT LIBCLANG_BUILD_STATIC does not imply PIC

Authored by davezarzycki on Apr 26 2020, 4:02 AM.

Description

[CMake] Fix logic error: NOT LIBCLANG_BUILD_STATIC does not imply PIC

Event Timeline

@thakis has a use case at https://reviews.llvm.org/D74907 building a SHARED libclang with LLVM_ENABLE_PIC set to OFF.

Would the variant if(LLVM_ENABLE_PIC OR (WIN32 AND NOT LIBCLANG_BUILD_STATIC)) work for the Fedora case?