llvm.org GIT mirror llvm / 04ef542
Revert 78996. It was breaking MSVC builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79144 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 10 years ago
2 changed file(s) with 0 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
265265 set(LLVM_ENUM_ASM_PARSERS "")
266266 foreach(t ${LLVM_TARGETS_TO_BUILD})
267267 message(STATUS "Targeting ${t}")
268 set(CURRENT_LLVM_TARGET ${t})
269268 add_subdirectory(lib/Target/${t})
270269 add_subdirectory(lib/Target/${t}/TargetInfo)
271270 if( EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/AsmPrinter/CMakeLists.txt )
278277 set(LLVM_ENUM_ASM_PARSERS
279278 "${LLVM_ENUM_ASM_PARSERS}LLVM_ASM_PARSER(${t})\n")
280279 endif( EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/AsmParser/CMakeLists.txt )
281 set(CURRENT_LLVM_TARGET)
282280 endforeach(t)
283281
284282 # Produce llvm/Config/AsmPrinters.def
1111 install(TARGETS ${name}
1212 LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
1313 ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX})
14 # The LLVM Target library shall be built before its sublibraries
15 # (asmprinter, etc) because those may use tablegenned files which
16 # generation is triggered by the main LLVM target library. Necessary
17 # for parallel builds:
18 if( CURRENT_LLVM_TARGET )
19 add_dependencies(${name} LLVM${CURRENT_LLVM_TARGET})
20 endif()
2114 endmacro(add_llvm_library name)
2215
2316