[llvm] 95eb50c - Check LLVM_BUILD_LLVM_C_DYLIB before building the C DLL with MSVC.
    Aaron Ballman via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Apr  7 10:14:10 PDT 2020
    
    
  
Author: Aaron Ballman
Date: 2020-04-07T13:13:58-04:00
New Revision: 95eb50c4470894e4cebb08ba3ea97efe2f7c179a
URL: https://github.com/llvm/llvm-project/commit/95eb50c4470894e4cebb08ba3ea97efe2f7c179a
DIFF: https://github.com/llvm/llvm-project/commit/95eb50c4470894e4cebb08ba3ea97efe2f7c179a.diff
LOG: Check LLVM_BUILD_LLVM_C_DYLIB before building the C DLL with MSVC.
Added: 
    
Modified: 
    llvm/tools/llvm-shlib/CMakeLists.txt
Removed: 
    
################################################################################
diff  --git a/llvm/tools/llvm-shlib/CMakeLists.txt b/llvm/tools/llvm-shlib/CMakeLists.txt
index 3eb6db33a435..eb42abfc1d40 100644
--- a/llvm/tools/llvm-shlib/CMakeLists.txt
+++ b/llvm/tools/llvm-shlib/CMakeLists.txt
@@ -106,7 +106,7 @@ if(LLVM_BUILD_LLVM_C_DYLIB AND NOT MSVC)
               " -compatibility_version 1 -current_version ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH} -Wl,-reexport_library ${LIB_PATH}")
 endif()
 
-if(MSVC)
+if(LLVM_BUILD_LLVM_C_DYLIB AND MSVC)
   # Build the LLVM-C.dll library that exports the C API.
 
   set(LLVM_LINK_COMPONENTS
        
    
    
More information about the llvm-commits
mailing list