llvm.org GIT mirror llvm / b78829e
CMake: Revert r79144. It reverted a change necessary for correct parallel builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79177 91177308-0d34-0410-b5e6-96231b3b80d8 Oscar Fuentes 10 years ago
2 changed file(s) with 9 addition(s) and 0 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})
268269 add_subdirectory(lib/Target/${t})
269270 add_subdirectory(lib/Target/${t}/TargetInfo)
270271 if( EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/AsmPrinter/CMakeLists.txt )
277278 set(LLVM_ENUM_ASM_PARSERS
278279 "${LLVM_ENUM_ASM_PARSERS}LLVM_ASM_PARSER(${t})\n")
279280 endif( EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/AsmParser/CMakeLists.txt )
281 set(CURRENT_LLVM_TARGET)
280282 endforeach(t)
281283
282284 # 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()
1421 endmacro(add_llvm_library name)
1522
1623