llvm.org GIT mirror llvm / 4b5205d
Revert "Enable building LTO on WIN32." This reverts commit r191670. It was causing build failures on the msvc bots: http://bb.pgr.jp/builders/ninja-clang-i686-msc17-R/builds/5166/steps/compile/logs/stdio git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191679 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 7 years ago
4 changed file(s) with 5 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
1616 call void @PR14512()
1717 ret i32 0
1818 }
19 ; XFAIL: win32
11 if not 'X86' in targets:
22 config.unsupported = True
33
4 if config.root.host_os in ['Cygwin']:
4 if config.root.host_os in ['Cygwin', 'MingW', 'Windows']:
55 config.unsupported = True
4242 add_llvm_tool_subdirectory(obj2yaml)
4343 add_llvm_tool_subdirectory(yaml2obj)
4444
45 if( NOT CYGWIN )
45 if( NOT WIN32 )
4646 add_llvm_tool_subdirectory(lto)
4747 add_llvm_tool_subdirectory(llvm-lto)
4848 else()
88 lto.cpp
99 )
1010
11 if( NOT CYGWIN AND LLVM_ENABLE_PIC )
12 if ( WIN32 )
13 # Create .def file containing a list of exports preceeded by
14 # 'EXPORTS'. The file "lto.exports" already contains the list, so we
15 # massage it into the correct format here to create "lto.exports.def".
16 set(LTO_EXPORTS_DEF ${CMAKE_CURRENT_BINARY_DIR}/lto.exports.def)
17 file(READ "lto.exports" exports_list)
18 file(WRITE ${LTO_EXPORTS_DEF} "LIBRARY LTO\n")
19 file(APPEND ${LTO_EXPORTS_DEF} "EXPORTS\n")
20 file(APPEND ${LTO_EXPORTS_DEF} ${exports_list})
21 set(SOURCES ${SOURCES} ${LTO_EXPORTS_DEF})
22 endif()
23
11 if( NOT WIN32 AND LLVM_ENABLE_PIC )
2412 set(bsl ${BUILD_SHARED_LIBS})
2513 set(BUILD_SHARED_LIBS ON)
2614 add_llvm_library(LTO ${SOURCES})
3624 set_property(TARGET ${LTO_STATIC_TARGET_NAME} PROPERTY OUTPUT_NAME "LTO")
3725 endif()
3826
39 if( NOT CYGWIN )
27 if( NOT WIN32 )
4028 install(FILES ${LLVM_MAIN_INCLUDE_DIR}/llvm-c/lto.h
4129 DESTINATION include/llvm-c)
4230 endif()