From dee68c80b90d5575611db7f6104650f654551c51 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Fri, 11 Sep 2015 17:08:02 +0000 Subject: [PATCH] [PR24785] Appease MSC18 to tweak optimizations. This brings a warning. cl : Command line warning D9035: option 'Og-' has been deprecated and will be removed in a future release We should resolve PR11951 to remove this tweak. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247427 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/IR/CMakeLists.txt b/lib/IR/CMakeLists.txt index aabeaefc0c7..9bc44570734 100644 --- a/lib/IR/CMakeLists.txt +++ b/lib/IR/CMakeLists.txt @@ -52,4 +52,12 @@ add_llvm_library(LLVMCore ${LLVM_MAIN_INCLUDE_DIR}/llvm/IR ) +# PR24785: Workaround for hanging compilation. +if( MSVC_VERSION EQUAL 1800) + set_property( + SOURCE Function.cpp + PROPERTY COMPILE_FLAGS "/Og-" + ) +endif() + add_dependencies(LLVMCore intrinsics_gen) -- 2.40.0