comparison lld/Common/CMakeLists.txt @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 0572611fdcc8
children c4bab56944e8
comparison
equal deleted inserted replaced
173:0572611fdcc8 207:2e18cbf3894f
1 if(NOT LLD_BUILT_STANDALONE) 1 set(LLD_SYSTEM_LIBS ${LLVM_PTHREAD_LIB})
2 set(tablegen_deps intrinsics_gen) 2
3 if(NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB)
4 list(APPEND LLD_SYSTEM_LIBS atomic)
3 endif() 5 endif()
4 6
5 find_first_existing_vc_file("${LLVM_MAIN_SRC_DIR}" llvm_vc) 7 find_first_existing_vc_file("${LLVM_MAIN_SRC_DIR}" llvm_vc)
6 find_first_existing_vc_file("${LLD_SOURCE_DIR}" lld_vc) 8 find_first_existing_vc_file("${LLD_SOURCE_DIR}" lld_vc)
7 9
21 23
22 # Mark the generated header as being generated. 24 # Mark the generated header as being generated.
23 set_source_files_properties("${version_inc}" 25 set_source_files_properties("${version_inc}"
24 PROPERTIES GENERATED TRUE 26 PROPERTIES GENERATED TRUE
25 HEADER_FILE_ONLY TRUE) 27 HEADER_FILE_ONLY TRUE)
26
27 set_property(SOURCE Version.cpp APPEND PROPERTY
28 COMPILE_DEFINITIONS "HAVE_VCS_VERSION_INC")
29 28
30 add_lld_library(lldCommon 29 add_lld_library(lldCommon
31 Args.cpp 30 Args.cpp
32 DWARF.cpp 31 DWARF.cpp
33 ErrorHandler.cpp 32 ErrorHandler.cpp
52 Option 51 Option
53 Support 52 Support
54 Target 53 Target
55 54
56 LINK_LIBS 55 LINK_LIBS
57 ${LLVM_PTHREAD_LIB} 56 ${LLD_SYSTEM_LIBS}
58 57
59 DEPENDS 58 DEPENDS
60 ${tablegen_deps} 59 intrinsics_gen
61 ) 60 )