diff options
author | thegeorg <thegeorg@yandex-team.com> | 2022-12-15 19:25:15 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2022-12-15 19:25:15 +0300 |
commit | 0c31d97afd7858af5f8f858c8addf91655ca9ccc (patch) | |
tree | 4d8a246db168f7beaafcd06d486c034115c2123d /contrib/libs/llvm12/lib/MC | |
parent | d1d5f5e00df0dd6efc00880dd8283477fc643aaf (diff) | |
download | ydb-0c31d97afd7858af5f8f858c8addf91655ca9ccc.tar.gz |
Sync linux-headers instead of using system ones
Diffstat (limited to 'contrib/libs/llvm12/lib/MC')
12 files changed, 492 insertions, 131 deletions
diff --git a/contrib/libs/llvm12/lib/MC/CMakeLists.darwin.txt b/contrib/libs/llvm12/lib/MC/CMakeLists.darwin.txt new file mode 100644 index 0000000000..9daf06006e --- /dev/null +++ b/contrib/libs/llvm12/lib/MC/CMakeLists.darwin.txt @@ -0,0 +1,90 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +add_subdirectory(MCDisassembler) +add_subdirectory(MCParser) + +add_library(llvm12-lib-MC) +target_compile_options(llvm12-lib-MC PRIVATE + -Wno-everything +) +target_include_directories(llvm12-lib-MC PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC +) +target_link_libraries(llvm12-lib-MC PUBLIC + contrib-libs-cxxsupp + contrib-libs-llvm12 + llvm12-lib-BinaryFormat + lib-DebugInfo-CodeView + llvm12-lib-Support +) +target_sources(llvm12-lib-MC PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/ConstantPools.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/ELFObjectWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmBackend.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfo.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfoCOFF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfoDarwin.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfoELF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfoWasm.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfoXCOFF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmMacro.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAssembler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCCodeEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCCodeView.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCContext.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDwarf.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCELFObjectTargetWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCELFStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCExpr.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCFragment.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCInst.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCInstPrinter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCInstrAnalysis.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCInstrDesc.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCInstrInfo.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCLabel.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCLinkerOptimizationHint.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCMachOStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCMachObjectTargetWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCNullStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCObjectFileInfo.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCObjectStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCObjectWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCPseudoProbe.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCRegisterInfo.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSchedule.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSection.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSectionCOFF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSectionELF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSectionMachO.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSectionWasm.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSectionXCOFF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSubtargetInfo.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSymbol.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSymbolELF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSymbolXCOFF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCTargetOptions.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCTargetOptionsCommandFlags.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCValue.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCWasmObjectTargetWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCWasmStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCWin64EH.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCWinCOFFStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCWinEH.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCXCOFFObjectTargetWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCXCOFFStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MachObjectWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/StringTableBuilder.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/SubtargetFeature.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/WasmObjectWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/WinCOFFObjectWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/XCOFFObjectWriter.cpp +) diff --git a/contrib/libs/llvm12/lib/MC/CMakeLists.linux-aarch64.txt b/contrib/libs/llvm12/lib/MC/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..75c9135884 --- /dev/null +++ b/contrib/libs/llvm12/lib/MC/CMakeLists.linux-aarch64.txt @@ -0,0 +1,91 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +add_subdirectory(MCDisassembler) +add_subdirectory(MCParser) + +add_library(llvm12-lib-MC) +target_compile_options(llvm12-lib-MC PRIVATE + -Wno-everything +) +target_include_directories(llvm12-lib-MC PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC +) +target_link_libraries(llvm12-lib-MC PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + contrib-libs-llvm12 + llvm12-lib-BinaryFormat + lib-DebugInfo-CodeView + llvm12-lib-Support +) +target_sources(llvm12-lib-MC PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/ConstantPools.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/ELFObjectWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmBackend.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfo.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfoCOFF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfoDarwin.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfoELF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfoWasm.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfoXCOFF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmMacro.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAssembler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCCodeEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCCodeView.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCContext.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDwarf.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCELFObjectTargetWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCELFStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCExpr.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCFragment.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCInst.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCInstPrinter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCInstrAnalysis.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCInstrDesc.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCInstrInfo.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCLabel.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCLinkerOptimizationHint.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCMachOStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCMachObjectTargetWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCNullStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCObjectFileInfo.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCObjectStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCObjectWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCPseudoProbe.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCRegisterInfo.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSchedule.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSection.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSectionCOFF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSectionELF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSectionMachO.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSectionWasm.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSectionXCOFF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSubtargetInfo.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSymbol.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSymbolELF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSymbolXCOFF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCTargetOptions.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCTargetOptionsCommandFlags.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCValue.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCWasmObjectTargetWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCWasmStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCWin64EH.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCWinCOFFStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCWinEH.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCXCOFFObjectTargetWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCXCOFFStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MachObjectWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/StringTableBuilder.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/SubtargetFeature.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/WasmObjectWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/WinCOFFObjectWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/XCOFFObjectWriter.cpp +) diff --git a/contrib/libs/llvm12/lib/MC/CMakeLists.linux.txt b/contrib/libs/llvm12/lib/MC/CMakeLists.linux.txt new file mode 100644 index 0000000000..75c9135884 --- /dev/null +++ b/contrib/libs/llvm12/lib/MC/CMakeLists.linux.txt @@ -0,0 +1,91 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +add_subdirectory(MCDisassembler) +add_subdirectory(MCParser) + +add_library(llvm12-lib-MC) +target_compile_options(llvm12-lib-MC PRIVATE + -Wno-everything +) +target_include_directories(llvm12-lib-MC PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC +) +target_link_libraries(llvm12-lib-MC PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + contrib-libs-llvm12 + llvm12-lib-BinaryFormat + lib-DebugInfo-CodeView + llvm12-lib-Support +) +target_sources(llvm12-lib-MC PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/ConstantPools.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/ELFObjectWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmBackend.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfo.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfoCOFF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfoDarwin.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfoELF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfoWasm.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfoXCOFF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmMacro.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAssembler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCCodeEmitter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCCodeView.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCContext.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDwarf.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCELFObjectTargetWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCELFStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCExpr.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCFragment.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCInst.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCInstPrinter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCInstrAnalysis.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCInstrDesc.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCInstrInfo.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCLabel.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCLinkerOptimizationHint.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCMachOStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCMachObjectTargetWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCNullStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCObjectFileInfo.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCObjectStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCObjectWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCPseudoProbe.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCRegisterInfo.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSchedule.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSection.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSectionCOFF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSectionELF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSectionMachO.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSectionWasm.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSectionXCOFF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSubtargetInfo.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSymbol.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSymbolELF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSymbolXCOFF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCTargetOptions.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCTargetOptionsCommandFlags.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCValue.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCWasmObjectTargetWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCWasmStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCWin64EH.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCWinCOFFStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCWinEH.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCXCOFFObjectTargetWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCXCOFFStreamer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MachObjectWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/StringTableBuilder.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/SubtargetFeature.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/WasmObjectWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/WinCOFFObjectWriter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/XCOFFObjectWriter.cpp +) diff --git a/contrib/libs/llvm12/lib/MC/CMakeLists.txt b/contrib/libs/llvm12/lib/MC/CMakeLists.txt index 9daf06006e..3e0811fb22 100644 --- a/contrib/libs/llvm12/lib/MC/CMakeLists.txt +++ b/contrib/libs/llvm12/lib/MC/CMakeLists.txt @@ -6,85 +6,10 @@ # original buildsystem will not be accepted. -add_subdirectory(MCDisassembler) -add_subdirectory(MCParser) - -add_library(llvm12-lib-MC) -target_compile_options(llvm12-lib-MC PRIVATE - -Wno-everything -) -target_include_directories(llvm12-lib-MC PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC -) -target_link_libraries(llvm12-lib-MC PUBLIC - contrib-libs-cxxsupp - contrib-libs-llvm12 - llvm12-lib-BinaryFormat - lib-DebugInfo-CodeView - llvm12-lib-Support -) -target_sources(llvm12-lib-MC PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/ConstantPools.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/ELFObjectWriter.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmBackend.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfo.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfoCOFF.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfoDarwin.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfoELF.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfoWasm.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmInfoXCOFF.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmMacro.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAsmStreamer.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCAssembler.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCCodeEmitter.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCCodeView.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCContext.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDwarf.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCELFObjectTargetWriter.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCELFStreamer.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCExpr.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCFragment.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCInst.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCInstPrinter.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCInstrAnalysis.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCInstrDesc.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCInstrInfo.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCLabel.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCLinkerOptimizationHint.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCMachOStreamer.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCMachObjectTargetWriter.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCNullStreamer.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCObjectFileInfo.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCObjectStreamer.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCObjectWriter.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCPseudoProbe.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCRegisterInfo.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSchedule.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSection.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSectionCOFF.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSectionELF.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSectionMachO.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSectionWasm.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSectionXCOFF.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCStreamer.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSubtargetInfo.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSymbol.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSymbolELF.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCSymbolXCOFF.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCTargetOptions.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCTargetOptionsCommandFlags.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCValue.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCWasmObjectTargetWriter.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCWasmStreamer.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCWin64EH.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCWinCOFFStreamer.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCWinEH.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCXCOFFObjectTargetWriter.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCXCOFFStreamer.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MachObjectWriter.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/StringTableBuilder.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/SubtargetFeature.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/WasmObjectWriter.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/WinCOFFObjectWriter.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/XCOFFObjectWriter.cpp -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/contrib/libs/llvm12/lib/MC/MCDisassembler/CMakeLists.darwin.txt b/contrib/libs/llvm12/lib/MC/MCDisassembler/CMakeLists.darwin.txt new file mode 100644 index 0000000000..66ecf91691 --- /dev/null +++ b/contrib/libs/llvm12/lib/MC/MCDisassembler/CMakeLists.darwin.txt @@ -0,0 +1,29 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(lib-MC-MCDisassembler) +target_compile_options(lib-MC-MCDisassembler PRIVATE + -Wno-everything +) +target_include_directories(lib-MC-MCDisassembler PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler +) +target_link_libraries(lib-MC-MCDisassembler PUBLIC + contrib-libs-cxxsupp + contrib-libs-llvm12 + llvm12-lib-MC + llvm12-lib-Support +) +target_sources(lib-MC-MCDisassembler PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler/Disassembler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler/MCDisassembler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler/MCExternalSymbolizer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler/MCRelocationInfo.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler/MCSymbolizer.cpp +) diff --git a/contrib/libs/llvm12/lib/MC/MCDisassembler/CMakeLists.linux-aarch64.txt b/contrib/libs/llvm12/lib/MC/MCDisassembler/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..af535feda2 --- /dev/null +++ b/contrib/libs/llvm12/lib/MC/MCDisassembler/CMakeLists.linux-aarch64.txt @@ -0,0 +1,30 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(lib-MC-MCDisassembler) +target_compile_options(lib-MC-MCDisassembler PRIVATE + -Wno-everything +) +target_include_directories(lib-MC-MCDisassembler PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler +) +target_link_libraries(lib-MC-MCDisassembler PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + contrib-libs-llvm12 + llvm12-lib-MC + llvm12-lib-Support +) +target_sources(lib-MC-MCDisassembler PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler/Disassembler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler/MCDisassembler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler/MCExternalSymbolizer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler/MCRelocationInfo.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler/MCSymbolizer.cpp +) diff --git a/contrib/libs/llvm12/lib/MC/MCDisassembler/CMakeLists.linux.txt b/contrib/libs/llvm12/lib/MC/MCDisassembler/CMakeLists.linux.txt new file mode 100644 index 0000000000..af535feda2 --- /dev/null +++ b/contrib/libs/llvm12/lib/MC/MCDisassembler/CMakeLists.linux.txt @@ -0,0 +1,30 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(lib-MC-MCDisassembler) +target_compile_options(lib-MC-MCDisassembler PRIVATE + -Wno-everything +) +target_include_directories(lib-MC-MCDisassembler PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler +) +target_link_libraries(lib-MC-MCDisassembler PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + contrib-libs-llvm12 + llvm12-lib-MC + llvm12-lib-Support +) +target_sources(lib-MC-MCDisassembler PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler/Disassembler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler/MCDisassembler.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler/MCExternalSymbolizer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler/MCRelocationInfo.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler/MCSymbolizer.cpp +) diff --git a/contrib/libs/llvm12/lib/MC/MCDisassembler/CMakeLists.txt b/contrib/libs/llvm12/lib/MC/MCDisassembler/CMakeLists.txt index 66ecf91691..3e0811fb22 100644 --- a/contrib/libs/llvm12/lib/MC/MCDisassembler/CMakeLists.txt +++ b/contrib/libs/llvm12/lib/MC/MCDisassembler/CMakeLists.txt @@ -6,24 +6,10 @@ # original buildsystem will not be accepted. - -add_library(lib-MC-MCDisassembler) -target_compile_options(lib-MC-MCDisassembler PRIVATE - -Wno-everything -) -target_include_directories(lib-MC-MCDisassembler PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler -) -target_link_libraries(lib-MC-MCDisassembler PUBLIC - contrib-libs-cxxsupp - contrib-libs-llvm12 - llvm12-lib-MC - llvm12-lib-Support -) -target_sources(lib-MC-MCDisassembler PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler/Disassembler.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler/MCDisassembler.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler/MCExternalSymbolizer.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler/MCRelocationInfo.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCDisassembler/MCSymbolizer.cpp -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/contrib/libs/llvm12/lib/MC/MCParser/CMakeLists.darwin.txt b/contrib/libs/llvm12/lib/MC/MCParser/CMakeLists.darwin.txt new file mode 100644 index 0000000000..52fac71e2f --- /dev/null +++ b/contrib/libs/llvm12/lib/MC/MCParser/CMakeLists.darwin.txt @@ -0,0 +1,36 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(lib-MC-MCParser) +target_compile_options(lib-MC-MCParser PRIVATE + -Wno-everything +) +target_include_directories(lib-MC-MCParser PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser +) +target_link_libraries(lib-MC-MCParser PUBLIC + contrib-libs-cxxsupp + contrib-libs-llvm12 + llvm12-lib-MC + llvm12-lib-Support +) +target_sources(lib-MC-MCParser PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/AsmLexer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/AsmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/COFFAsmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/COFFMasmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/DarwinAsmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/ELFAsmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/MCAsmLexer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/MCAsmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/MCAsmParserExtension.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/MCTargetAsmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/MasmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/WasmAsmParser.cpp +) diff --git a/contrib/libs/llvm12/lib/MC/MCParser/CMakeLists.linux-aarch64.txt b/contrib/libs/llvm12/lib/MC/MCParser/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..b846e4ceed --- /dev/null +++ b/contrib/libs/llvm12/lib/MC/MCParser/CMakeLists.linux-aarch64.txt @@ -0,0 +1,37 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(lib-MC-MCParser) +target_compile_options(lib-MC-MCParser PRIVATE + -Wno-everything +) +target_include_directories(lib-MC-MCParser PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser +) +target_link_libraries(lib-MC-MCParser PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + contrib-libs-llvm12 + llvm12-lib-MC + llvm12-lib-Support +) +target_sources(lib-MC-MCParser PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/AsmLexer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/AsmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/COFFAsmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/COFFMasmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/DarwinAsmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/ELFAsmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/MCAsmLexer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/MCAsmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/MCAsmParserExtension.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/MCTargetAsmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/MasmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/WasmAsmParser.cpp +) diff --git a/contrib/libs/llvm12/lib/MC/MCParser/CMakeLists.linux.txt b/contrib/libs/llvm12/lib/MC/MCParser/CMakeLists.linux.txt new file mode 100644 index 0000000000..b846e4ceed --- /dev/null +++ b/contrib/libs/llvm12/lib/MC/MCParser/CMakeLists.linux.txt @@ -0,0 +1,37 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(lib-MC-MCParser) +target_compile_options(lib-MC-MCParser PRIVATE + -Wno-everything +) +target_include_directories(lib-MC-MCParser PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser +) +target_link_libraries(lib-MC-MCParser PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + contrib-libs-llvm12 + llvm12-lib-MC + llvm12-lib-Support +) +target_sources(lib-MC-MCParser PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/AsmLexer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/AsmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/COFFAsmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/COFFMasmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/DarwinAsmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/ELFAsmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/MCAsmLexer.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/MCAsmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/MCAsmParserExtension.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/MCTargetAsmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/MasmParser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/WasmAsmParser.cpp +) diff --git a/contrib/libs/llvm12/lib/MC/MCParser/CMakeLists.txt b/contrib/libs/llvm12/lib/MC/MCParser/CMakeLists.txt index 52fac71e2f..3e0811fb22 100644 --- a/contrib/libs/llvm12/lib/MC/MCParser/CMakeLists.txt +++ b/contrib/libs/llvm12/lib/MC/MCParser/CMakeLists.txt @@ -6,31 +6,10 @@ # original buildsystem will not be accepted. - -add_library(lib-MC-MCParser) -target_compile_options(lib-MC-MCParser PRIVATE - -Wno-everything -) -target_include_directories(lib-MC-MCParser PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser -) -target_link_libraries(lib-MC-MCParser PUBLIC - contrib-libs-cxxsupp - contrib-libs-llvm12 - llvm12-lib-MC - llvm12-lib-Support -) -target_sources(lib-MC-MCParser PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/AsmLexer.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/AsmParser.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/COFFAsmParser.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/COFFMasmParser.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/DarwinAsmParser.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/ELFAsmParser.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/MCAsmLexer.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/MCAsmParser.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/MCAsmParserExtension.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/MCTargetAsmParser.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/MasmParser.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/MC/MCParser/WasmAsmParser.cpp -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() |