Revert "[lldb][test] Remove compiler version check and use regex" (#124101)
[llvm-project.git] / bolt / lib / Target / X86 / CMakeLists.txt
blob6d1accb5e815916e0db979f6a1aa7e60cbb89c05
1 set(LLVM_LINK_COMPONENTS
2   MC
3   MCDisassembler
4   Support
5   X86Desc
6   )
8 if(BOLT_BUILT_STANDALONE)
9   set(LLVM_TARGET_DEFINITIONS ${LLVM_MAIN_SRC_DIR}/lib/Target/X86/X86.td)
10   list(APPEND LLVM_TABLEGEN_FLAGS -I ${LLVM_MAIN_SRC_DIR}/lib/Target/X86)
11   tablegen(LLVM X86GenInstrInfo.inc -gen-instr-info -instr-info-expand-mi-operand-info=0)
12   tablegen(LLVM X86GenMnemonicTables.inc -gen-x86-mnemonic-tables -asmwriternum=1)
13   tablegen(LLVM X86GenRegisterInfo.inc -gen-register-info)
14   tablegen(LLVM X86GenSubtargetInfo.inc -gen-subtarget)
16   add_public_tablegen_target(X86CommonTableGen)
17   include_directories(${CMAKE_CURRENT_BINARY_DIR})
18 endif()
20 add_llvm_library(LLVMBOLTTargetX86
21   X86MCPlusBuilder.cpp
22   X86MCSymbolizer.cpp
24   NO_EXPORT
25   DISABLE_LLVM_LINK_LLVM_DYLIB
27   DEPENDS
28   X86CommonTableGen
29   )
31 target_link_libraries(LLVMBOLTTargetX86 PRIVATE LLVMBOLTCore LLVMBOLTUtils)
33 include_directories(
34   ${LLVM_MAIN_SRC_DIR}/lib/Target/X86
35   ${LLVM_BINARY_DIR}/lib/Target/X86
36   )