llvm.org GIT mirror llvm / 4bc9d4e
Try to fix the build with MSVC 2015 by disabling sized deallocation I can't actually test this properly because uninstalling MSVC 2015 CTP 6 and reinstalling the 2015 RC takes hours. I can only verify that this doesn't mess up MSVC 2013 and 2015 CTP 6 builds, which is what I've done. Should fix PR23513. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237743 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Kleckner 4 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
344344 append("${flag}" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
345345 endforeach(flag)
346346
347 # Disable sized deallocation if the flag is supported. MSVC fails to compile
348 # the operator new overload in User otherwise.
349 check_c_compiler_flag("/WX /Zc:sizedDealloc-" SUPPORTS_SIZED_DEALLOC)
350 append_if(SUPPORTS_SIZED_DEALLOC "/Zc:sizedDealloc-" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
351
347352 elseif( LLVM_COMPILER_IS_GCC_COMPATIBLE )
348353 if (LLVM_ENABLE_WARNINGS)
349354 append("-Wall -W -Wno-unused-parameter -Wwrite-strings" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)