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/ExecutionEngine | |
parent | d1d5f5e00df0dd6efc00880dd8283477fc643aaf (diff) | |
download | ydb-0c31d97afd7858af5f8f858c8addf91655ca9ccc.tar.gz |
Sync linux-headers instead of using system ones
Diffstat (limited to 'contrib/libs/llvm12/lib/ExecutionEngine')
12 files changed, 217 insertions, 49 deletions
diff --git a/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.linux-aarch64.txt b/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.linux-aarch64.txt index 74965dc236..a9c1e74f91 100644 --- a/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.linux-aarch64.txt +++ b/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.linux-aarch64.txt @@ -18,6 +18,7 @@ target_include_directories(llvm12-lib-ExecutionEngine PRIVATE ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine ) target_link_libraries(llvm12-lib-ExecutionEngine PUBLIC + contrib-libs-linux-headers contrib-libs-cxxsupp contrib-libs-llvm12 libs-llvm12-include diff --git a/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.linux.txt b/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.linux.txt index 74965dc236..a9c1e74f91 100644 --- a/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.linux.txt +++ b/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.linux.txt @@ -18,6 +18,7 @@ target_include_directories(llvm12-lib-ExecutionEngine PRIVATE ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine ) target_link_libraries(llvm12-lib-ExecutionEngine PUBLIC + contrib-libs-linux-headers contrib-libs-cxxsupp contrib-libs-llvm12 libs-llvm12-include diff --git a/contrib/libs/llvm12/lib/ExecutionEngine/MCJIT/CMakeLists.darwin.txt b/contrib/libs/llvm12/lib/ExecutionEngine/MCJIT/CMakeLists.darwin.txt new file mode 100644 index 0000000000..9374cfc980 --- /dev/null +++ b/contrib/libs/llvm12/lib/ExecutionEngine/MCJIT/CMakeLists.darwin.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-ExecutionEngine-MCJIT) +target_compile_options(lib-ExecutionEngine-MCJIT PRIVATE + -Wno-everything +) +target_include_directories(lib-ExecutionEngine-MCJIT PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/MCJIT +) +target_link_libraries(lib-ExecutionEngine-MCJIT PUBLIC + contrib-libs-cxxsupp + contrib-libs-llvm12 + libs-llvm12-include + llvm12-lib-ExecutionEngine + lib-ExecutionEngine-RuntimeDyld + llvm12-lib-IR + llvm12-lib-Object + llvm12-lib-Support + llvm12-lib-Target +) +target_sources(lib-ExecutionEngine-MCJIT PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/MCJIT/MCJIT.cpp +) diff --git a/contrib/libs/llvm12/lib/ExecutionEngine/MCJIT/CMakeLists.linux-aarch64.txt b/contrib/libs/llvm12/lib/ExecutionEngine/MCJIT/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..3f1221bf47 --- /dev/null +++ b/contrib/libs/llvm12/lib/ExecutionEngine/MCJIT/CMakeLists.linux-aarch64.txt @@ -0,0 +1,31 @@ + +# 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-ExecutionEngine-MCJIT) +target_compile_options(lib-ExecutionEngine-MCJIT PRIVATE + -Wno-everything +) +target_include_directories(lib-ExecutionEngine-MCJIT PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/MCJIT +) +target_link_libraries(lib-ExecutionEngine-MCJIT PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + contrib-libs-llvm12 + libs-llvm12-include + llvm12-lib-ExecutionEngine + lib-ExecutionEngine-RuntimeDyld + llvm12-lib-IR + llvm12-lib-Object + llvm12-lib-Support + llvm12-lib-Target +) +target_sources(lib-ExecutionEngine-MCJIT PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/MCJIT/MCJIT.cpp +) diff --git a/contrib/libs/llvm12/lib/ExecutionEngine/MCJIT/CMakeLists.linux.txt b/contrib/libs/llvm12/lib/ExecutionEngine/MCJIT/CMakeLists.linux.txt new file mode 100644 index 0000000000..3f1221bf47 --- /dev/null +++ b/contrib/libs/llvm12/lib/ExecutionEngine/MCJIT/CMakeLists.linux.txt @@ -0,0 +1,31 @@ + +# 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-ExecutionEngine-MCJIT) +target_compile_options(lib-ExecutionEngine-MCJIT PRIVATE + -Wno-everything +) +target_include_directories(lib-ExecutionEngine-MCJIT PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/MCJIT +) +target_link_libraries(lib-ExecutionEngine-MCJIT PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + contrib-libs-llvm12 + libs-llvm12-include + llvm12-lib-ExecutionEngine + lib-ExecutionEngine-RuntimeDyld + llvm12-lib-IR + llvm12-lib-Object + llvm12-lib-Support + llvm12-lib-Target +) +target_sources(lib-ExecutionEngine-MCJIT PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/MCJIT/MCJIT.cpp +) diff --git a/contrib/libs/llvm12/lib/ExecutionEngine/MCJIT/CMakeLists.txt b/contrib/libs/llvm12/lib/ExecutionEngine/MCJIT/CMakeLists.txt index 9374cfc980..3e0811fb22 100644 --- a/contrib/libs/llvm12/lib/ExecutionEngine/MCJIT/CMakeLists.txt +++ b/contrib/libs/llvm12/lib/ExecutionEngine/MCJIT/CMakeLists.txt @@ -6,25 +6,10 @@ # original buildsystem will not be accepted. - -add_library(lib-ExecutionEngine-MCJIT) -target_compile_options(lib-ExecutionEngine-MCJIT PRIVATE - -Wno-everything -) -target_include_directories(lib-ExecutionEngine-MCJIT PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/MCJIT -) -target_link_libraries(lib-ExecutionEngine-MCJIT PUBLIC - contrib-libs-cxxsupp - contrib-libs-llvm12 - libs-llvm12-include - llvm12-lib-ExecutionEngine - lib-ExecutionEngine-RuntimeDyld - llvm12-lib-IR - llvm12-lib-Object - llvm12-lib-Support - llvm12-lib-Target -) -target_sources(lib-ExecutionEngine-MCJIT PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/MCJIT/MCJIT.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/ExecutionEngine/PerfJITEvents/CMakeLists.linux-aarch64.txt b/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/CMakeLists.linux-aarch64.txt index a1a9266ca5..4159153402 100644 --- a/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/CMakeLists.linux-aarch64.txt +++ b/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/CMakeLists.linux-aarch64.txt @@ -15,6 +15,7 @@ target_include_directories(lib-ExecutionEngine-PerfJITEvents PRIVATE ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents ) target_link_libraries(lib-ExecutionEngine-PerfJITEvents PUBLIC + contrib-libs-linux-headers contrib-libs-cxxsupp contrib-libs-llvm12 llvm12-lib-CodeGen diff --git a/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/CMakeLists.linux.txt b/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/CMakeLists.linux.txt index a1a9266ca5..4159153402 100644 --- a/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/CMakeLists.linux.txt +++ b/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/CMakeLists.linux.txt @@ -15,6 +15,7 @@ target_include_directories(lib-ExecutionEngine-PerfJITEvents PRIVATE ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents ) target_link_libraries(lib-ExecutionEngine-PerfJITEvents PUBLIC + contrib-libs-linux-headers contrib-libs-cxxsupp contrib-libs-llvm12 llvm12-lib-CodeGen diff --git a/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/CMakeLists.darwin.txt b/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/CMakeLists.darwin.txt new file mode 100644 index 0000000000..117c9bda39 --- /dev/null +++ b/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/CMakeLists.darwin.txt @@ -0,0 +1,35 @@ + +# 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-ExecutionEngine-RuntimeDyld) +target_compile_options(lib-ExecutionEngine-RuntimeDyld PRIVATE + -Wno-everything +) +target_include_directories(lib-ExecutionEngine-RuntimeDyld PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld +) +target_link_libraries(lib-ExecutionEngine-RuntimeDyld PUBLIC + contrib-libs-cxxsupp + contrib-libs-llvm12 + libs-llvm12-include + llvm12-lib-IR + llvm12-lib-MC + llvm12-lib-Object + llvm12-lib-Support +) +target_sources(lib-ExecutionEngine-RuntimeDyld PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/JITSymbol.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldELFMips.cpp +) diff --git a/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/CMakeLists.linux-aarch64.txt b/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..1425a48200 --- /dev/null +++ b/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/CMakeLists.linux-aarch64.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-ExecutionEngine-RuntimeDyld) +target_compile_options(lib-ExecutionEngine-RuntimeDyld PRIVATE + -Wno-everything +) +target_include_directories(lib-ExecutionEngine-RuntimeDyld PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld +) +target_link_libraries(lib-ExecutionEngine-RuntimeDyld PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + contrib-libs-llvm12 + libs-llvm12-include + llvm12-lib-IR + llvm12-lib-MC + llvm12-lib-Object + llvm12-lib-Support +) +target_sources(lib-ExecutionEngine-RuntimeDyld PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/JITSymbol.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldELFMips.cpp +) diff --git a/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/CMakeLists.linux.txt b/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/CMakeLists.linux.txt new file mode 100644 index 0000000000..1425a48200 --- /dev/null +++ b/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/CMakeLists.linux.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-ExecutionEngine-RuntimeDyld) +target_compile_options(lib-ExecutionEngine-RuntimeDyld PRIVATE + -Wno-everything +) +target_include_directories(lib-ExecutionEngine-RuntimeDyld PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld +) +target_link_libraries(lib-ExecutionEngine-RuntimeDyld PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + contrib-libs-llvm12 + libs-llvm12-include + llvm12-lib-IR + llvm12-lib-MC + llvm12-lib-Object + llvm12-lib-Support +) +target_sources(lib-ExecutionEngine-RuntimeDyld PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/JITSymbol.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldELFMips.cpp +) diff --git a/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt b/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt index 117c9bda39..3e0811fb22 100644 --- a/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt +++ b/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt @@ -6,30 +6,10 @@ # original buildsystem will not be accepted. - -add_library(lib-ExecutionEngine-RuntimeDyld) -target_compile_options(lib-ExecutionEngine-RuntimeDyld PRIVATE - -Wno-everything -) -target_include_directories(lib-ExecutionEngine-RuntimeDyld PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld -) -target_link_libraries(lib-ExecutionEngine-RuntimeDyld PUBLIC - contrib-libs-cxxsupp - contrib-libs-llvm12 - libs-llvm12-include - llvm12-lib-IR - llvm12-lib-MC - llvm12-lib-Object - llvm12-lib-Support -) -target_sources(lib-ExecutionEngine-RuntimeDyld PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/JITSymbol.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldELFMips.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() |