diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake --- a/llvm/cmake/modules/AddLLVM.cmake +++ b/llvm/cmake/modules/AddLLVM.cmake @@ -1638,7 +1638,7 @@ set(ENABLE_SHARED "0") endif() - if(LLVM_ENABLE_ASSERTIONS AND NOT MSVC_IDE) + if(LLVM_ENABLE_ASSERTIONS) set(ENABLE_ASSERTIONS "1") else() set(ENABLE_ASSERTIONS "0")