blob: 1e6abfacb79217465db19499a127268273f5d865 [file] [log] [blame]
NAKAMURA Takumid75e0202015-02-01 00:55:32 +00001list(APPEND LLVM_COMMON_DEPENDS intrinsics_gen)
2
Chris Bieneman1b5f5632016-12-06 04:45:11 +00003list(APPEND LLVM_TABLEGEN_FLAGS -I ${LLVM_MAIN_SRC_DIR}/lib/Target)
4
Oscar Fuentesa229b3c2008-09-22 01:08:49 +00005add_llvm_library(LLVMTarget
Oscar Fuentesa229b3c2008-09-22 01:08:49 +00006 Target.cpp
Ted Kremenekd0014cf2009-07-21 17:43:20 +00007 TargetIntrinsicInfo.cpp
Chris Lattner5e693ed2009-07-28 03:13:23 +00008 TargetLoweringObjectFile.cpp
Oscar Fuentesa229b3c2008-09-22 01:08:49 +00009 TargetMachine.cpp
Duncan Sands264d2e72012-04-11 10:25:24 +000010 TargetMachineC.cpp
Zachary Turner3bd47ce2015-02-11 03:28:02 +000011
12 ADDITIONAL_HEADER_DIRS
13 ${LLVM_MAIN_INCLUDE_DIR}/llvm/Target
Oscar Fuentesa229b3c2008-09-22 01:08:49 +000014 )
Oscar Fuentes5ed96262011-02-18 22:06:14 +000015
Oscar Fuentes5ed96262011-02-18 22:06:14 +000016foreach(t ${LLVM_TARGETS_TO_BUILD})
17 message(STATUS "Targeting ${t}")
18 add_subdirectory(${t})
Daniel Dunbar4a2eab02011-11-04 19:04:42 +000019endforeach()
Chris Bienemane7a98202017-02-08 20:58:37 +000020
21# Currently we do not allow libraries from lib to reference targets directly.
22# This property is used to enforce that convention. It is important because the
23# logic in llvm_map_components_to_libnames is order dependent on the target
24# libraries being created.
25set_property(GLOBAL PROPERTY LLVM_TARGETS_CONFIGURED On)