1 # Ensure that libLLVMTargetParser does not carry any static global initializer.
2 # ManagedStatic can be used to enable lazy-initialization of globals.
4 # HAS_WERROR_GLOBAL_CTORS and LLVM_HAS_NOGLOBAL_CTOR_MUTEX should have been set
5 # by llvm/lib/Support/CMakeLists.txt (which provides the required Support
7 if (HAS_WERROR_GLOBAL_CTORS AND NOT LLVM_HAS_NOGLOBAL_CTOR_MUTEX)
8 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=global-constructors")
11 # Solaris code uses kstat, so specify dependency explicitly for shared builds.
12 if (${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
13 set(system_libs kstat)
16 add_llvm_component_library(LLVMTargetParser
17 AArch64TargetParser.cpp
18 ARMTargetParserCommon.cpp
22 LoongArchTargetParser.cpp
31 ADDITIONAL_HEADER_DIRS
42 ARMTargetParserTableGen
43 AArch64TargetParserTableGen
44 RISCVTargetParserTableGen