diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-06-24 03:48:29 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-06-24 03:48:29 +0000 |
commit | a1c8420f1b174aa8c1e3698861801d636b8992c5 (patch) | |
tree | ccb3061c45f6cbbb3974d37f494915ab93fa6809 /lib/VMCore | |
parent | 917f99354fa558e50d17191f593f81155b4ab2c3 (diff) | |
download | external_llvm-a1c8420f1b174aa8c1e3698861801d636b8992c5.zip external_llvm-a1c8420f1b174aa8c1e3698861801d636b8992c5.tar.gz external_llvm-a1c8420f1b174aa8c1e3698861801d636b8992c5.tar.bz2 |
VMCore/CMakeLists.txt: [CMake][MSVC] Add "/Og-" to Function.cpp on msvc10. Otherwise, it took over 20 minutes to compile.
FIXME: Suppressing optimizations to core libraries would not be good thing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159097 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/VMCore/CMakeLists.txt b/lib/VMCore/CMakeLists.txt index e1efcda..ba6edd9 100644 --- a/lib/VMCore/CMakeLists.txt +++ b/lib/VMCore/CMakeLists.txt @@ -36,3 +36,12 @@ add_llvm_library(LLVMCore ValueTypes.cpp Verifier.cpp ) + +# Workaround: It takes over 20 minutes to compile with msvc10. +# FIXME: Suppressing optimizations to core libraries would not be good thing. +if( MSVC_VERSION EQUAL 1600 ) +set_property( + SOURCE Function.cpp + PROPERTY COMPILE_FLAGS "/Og-" + ) +endif() |