diff options
author | dcherednik <dcherednik@ydb.tech> | 2022-10-26 16:40:35 +0300 |
---|---|---|
committer | dcherednik <dcherednik@ydb.tech> | 2022-10-26 16:40:35 +0300 |
commit | b981cca279190176740c3bf5c5b4fd03be51b599 (patch) | |
tree | f5ec6210fdce0e976cbbe4dc8ae78bb6509adf49 /contrib/libs/llvm12/lib | |
parent | 6dc0de995652f7eeecdbdb88dc98b00bb0653a2f (diff) | |
download | ydb-b981cca279190176740c3bf5c5b4fd03be51b599.tar.gz |
Enable linux-arm platform.
Diffstat (limited to 'contrib/libs/llvm12/lib')
4 files changed, 73 insertions, 2 deletions
diff --git a/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.linux-aarch64.txt b/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..74965dc236 --- /dev/null +++ b/contrib/libs/llvm12/lib/ExecutionEngine/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_subdirectory(MCJIT) +add_subdirectory(PerfJITEvents) +add_subdirectory(RuntimeDyld) + +add_library(llvm12-lib-ExecutionEngine) +target_compile_options(llvm12-lib-ExecutionEngine PRIVATE + -Wno-everything +) +target_include_directories(llvm12-lib-ExecutionEngine PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine +) +target_link_libraries(llvm12-lib-ExecutionEngine PUBLIC + contrib-libs-cxxsupp + contrib-libs-llvm12 + libs-llvm12-include + lib-ExecutionEngine-RuntimeDyld + llvm12-lib-IR + llvm12-lib-MC + llvm12-lib-Object + llvm12-lib-Support + llvm12-lib-Target +) +target_sources(llvm12-lib-ExecutionEngine PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/ExecutionEngine.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/ExecutionEngineBindings.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/GDBRegistrationListener.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/SectionMemoryManager.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/TargetSelect.cpp +) diff --git a/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.txt b/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.txt +++ b/contrib/libs/llvm12/lib/ExecutionEngine/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +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) diff --git a/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/CMakeLists.linux-aarch64.txt b/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..a1a9266ca5 --- /dev/null +++ b/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/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-ExecutionEngine-PerfJITEvents) +target_compile_options(lib-ExecutionEngine-PerfJITEvents PRIVATE + -Wno-everything +) +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-cxxsupp + contrib-libs-llvm12 + llvm12-lib-CodeGen + lib-DebugInfo-DWARF + llvm12-lib-ExecutionEngine + lib-ExecutionEngine-RuntimeDyld + llvm12-lib-IR + llvm12-lib-Object + llvm12-lib-Support +) +target_sources(lib-ExecutionEngine-PerfJITEvents PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp +) diff --git a/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/CMakeLists.txt b/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/CMakeLists.txt index 3c0f983fa5..fb9f9efce2 100644 --- a/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/CMakeLists.txt +++ b/contrib/libs/llvm12/lib/ExecutionEngine/PerfJITEvents/CMakeLists.txt @@ -6,6 +6,8 @@ # original buildsystem will not be accepted. -if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) endif() |