Author: Mateusz Mikuła Date: 2020-10-12T23:28:23+03:00 New Revision: 3b1d018c0dba45408164f5e69cb400976efa350f
URL: https://github.com/llvm/llvm-project/commit/3b1d018c0dba45408164f5e69cb400976efa350f DIFF: https://github.com/llvm/llvm-project/commit/3b1d018c0dba45408164f5e69cb400976efa350f.diff LOG: [MinGW][clang-shlib] Build only when LLVM_LINK_LLVM_DYLIB is enabled Otherwise it's easy to hit 2^16 DLL exports limit. Differential Revision: https://reviews.llvm.org/D89225 Added: Modified: clang/tools/CMakeLists.txt Removed: ################################################################################ diff --git a/clang/tools/CMakeLists.txt b/clang/tools/CMakeLists.txt index 85a85812a8d4..84e3fb156f1a 100644 --- a/clang/tools/CMakeLists.txt +++ b/clang/tools/CMakeLists.txt @@ -15,7 +15,9 @@ add_clang_subdirectory(c-index-test) add_clang_subdirectory(clang-rename) add_clang_subdirectory(clang-refactor) -if(UNIX OR MINGW) +# For MinGW we only enable shared library if LLVM_LINK_LLVM_DYLIB=ON. +# Without that option resulting library is too close to 2^16 DLL exports limit. +if(UNIX OR (MINGW AND LLVM_LINK_LLVM_DYLIB)) add_clang_subdirectory(clang-shlib) endif() _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits