[llvm-commits] [llvm] r159097 - /llvm/trunk/lib/VMCore/CMakeLists.txt

Duncan Sands baldrick at free.fr
Sun Jun 24 01:41:29 PDT 2012


Hi Takumi,

> 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.

are you planning to fix this properly, i.e. work out why MSVC is taking so long
and rework things to avoid it?  If not, I'm worried that this hack will stay
for ever and never be fixed.

Ciao, Duncan.

>
> Modified:
>      llvm/trunk/lib/VMCore/CMakeLists.txt
>
> Modified: llvm/trunk/lib/VMCore/CMakeLists.txt
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/CMakeLists.txt?rev=159097&r1=159096&r2=159097&view=diff
> ==============================================================================
> --- llvm/trunk/lib/VMCore/CMakeLists.txt (original)
> +++ llvm/trunk/lib/VMCore/CMakeLists.txt Sat Jun 23 22:48:29 2012
> @@ -36,3 +36,12 @@
>     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()
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>





More information about the llvm-commits mailing list