llvm.org GIT mirror llvm / b62b44c
Cleaning up a bunch of pre-Visual C++ 2012 build hacks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202806 91177308-0d34-0410-b5e6-96231b3b80d8 Yaron Keren 6 years ago
7 changed file(s) with 0 addition(s) and 56 deletion(s). Raw diff Collapse all Expand all
561561 )
562562 endif()
563563
564 # Workaround for MSVS10 to avoid the Dialog Hell
565 # FIXME: This could be removed with future version of CMake.
566 if(MSVC_VERSION EQUAL 1600)
567 set(LLVM_SLN_FILENAME "${CMAKE_CURRENT_BINARY_DIR}/LLVM.sln")
568 if( EXISTS "${LLVM_SLN_FILENAME}" )
569 file(APPEND "${LLVM_SLN_FILENAME}" "\n# This should be regenerated!\n")
570 endif()
571 endif()
572
4242 Verifier.cpp
4343 )
4444
45 # Workaround: It takes over 20 minutes to compile with msvc10.
46 # FIXME: Suppressing optimizations to core libraries would not be good thing.
47 if( MSVC_VERSION LESS 1700 )
48 set_property(
49 SOURCE Function.cpp
50 PROPERTY COMPILE_FLAGS "/Og-"
51 )
52 endif()
53
5445 add_dependencies(LLVMCore intrinsics_gen)
4848 Thumb2SizeReduction.cpp
4949 )
5050
51 # workaround for hanging compilation on MSVC9, 10
52 if( MSVC_VERSION EQUAL 1600 OR MSVC_VERSION EQUAL 1500 )
53 set_property(
54 SOURCE ARMISelLowering.cpp
55 PROPERTY COMPILE_FLAGS "/Od"
56 )
57 endif()
58
5951 add_subdirectory(TargetInfo)
6052 add_subdirectory(AsmParser)
6153 add_subdirectory(Disassembler)
0 add_llvm_library(LLVMARMDisassembler
11 ARMDisassembler.cpp
22 )
3 # workaround for hanging compilation on MSVC8, 9 and 10
4 if( MSVC_VERSION EQUAL 1400 OR MSVC_VERSION EQUAL 1500 OR MSVC_VERSION EQUAL 1600 )
5 set_property(
6 SOURCE ARMDisassembler.cpp
7 PROPERTY COMPILE_FLAGS "/Od"
8 )
9 endif()
0 add_llvm_library(LLVMMipsDisassembler
11 MipsDisassembler.cpp
22 )
3
4 # workaround for hanging compilation on MSVC9 and 10
5 if( MSVC_VERSION EQUAL 1400 OR MSVC_VERSION EQUAL 1500 OR MSVC_VERSION EQUAL 1600 )
6 set_property(
7 SOURCE MipsDisassembler.cpp
8 PROPERTY COMPILE_FLAGS "/Od"
9 )
10 endif()
4040 polymorphic_ptr_test.cpp
4141 )
4242
43 # They cannot be compiled on MSVC9 due to its bug.
44 if(MSVC AND MSVC_VERSION LESS 1600)
45 set(LLVM_OPTIONAL_SOURCES
46 DenseMapTest.cpp
47 SmallVectorTest.cpp
48 )
49 list(REMOVE_ITEM ADTSources ${LLVM_OPTIONAL_SOURCES})
50 endif()
51
5243 add_llvm_unittest(ADTTests
5344 ${ADTSources}
5445 )
2424 WaymarkTest.cpp
2525 )
2626
27 # MSVC9 and 8 cannot compile ValueMapTest.cpp due to their bug.
28 # See issue#331418 in Visual Studio.
29 if(MSVC AND MSVC_VERSION LESS 1600)
30 list(REMOVE_ITEM IRSources ValueMapTest.cpp)
31 endif()
32
3327 # HACK: Declare a couple of source files as optionally compiled to satisfy the
3428 # missing-file-checker in LLVM's weird CMake build.
3529 set(LLVM_OPTIONAL_SOURCES