[llvm] r247427 - [PR24785] Appease MSC18 to tweak optimizations.

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 11 10:08:02 PDT 2015


Author: chapuni
Date: Fri Sep 11 12:08:02 2015
New Revision: 247427

URL: http://llvm.org/viewvc/llvm-project?rev=247427&view=rev
Log:
[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.

Modified:
    llvm/trunk/lib/IR/CMakeLists.txt

Modified: llvm/trunk/lib/IR/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/CMakeLists.txt?rev=247427&r1=247426&r2=247427&view=diff
==============================================================================
--- llvm/trunk/lib/IR/CMakeLists.txt (original)
+++ llvm/trunk/lib/IR/CMakeLists.txt Fri Sep 11 12:08:02 2015
@@ -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)




More information about the llvm-commits mailing list