[PR24785] Appease MSC18 to tweak optimizations.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 11 Sep 2015 17:08:02 +0000 (17:08 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 11 Sep 2015 17:08:02 +0000 (17:08 +0000)
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

index aabeaef..9bc4457 100644 (file)
@@ -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)