Skip to content

Commit

Permalink
[CMake] Fix logic error: NOT LIBCLANG_BUILD_STATIC does not imply PIC
Browse files Browse the repository at this point in the history
  • Loading branch information
davezarzycki committed Apr 26, 2020
1 parent e4196b1 commit 6654719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/tools/libclang/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ if(MSVC)
set(LLVM_EXPORTED_SYMBOL_FILE)
endif()

if(LLVM_ENABLE_PIC OR NOT LIBCLANG_BUILD_STATIC)
if(LLVM_ENABLE_PIC)
set(ENABLE_SHARED SHARED)
endif()

Expand Down

0 comments on commit 6654719

Please sign in to comment.