summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2015-09-11 17:08:02 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2015-09-11 17:08:02 +0000
commit25b5bd27eac26c75998eee7dff99b7af4b2e7884 (patch)
treec733efe950c8993d82af0f5f87a85fecb1a19214 /llvm/lib
parent15843343b67a37c8859bd7f84d2f34b0f7eead85 (diff)
downloadbcm5719-llvm-25b5bd27eac26c75998eee7dff99b7af4b2e7884.tar.gz
bcm5719-llvm-25b5bd27eac26c75998eee7dff99b7af4b2e7884.zip
[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. llvm-svn: 247427
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/IR/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/IR/CMakeLists.txt b/llvm/lib/IR/CMakeLists.txt
index aabeaefc0c7..9bc44570734 100644
--- a/llvm/lib/IR/CMakeLists.txt
+++ b/llvm/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)
OpenPOWER on IntegriCloud