aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/cxxsupp/libcxxabi-parts
diff options
context:
space:
mode:
authordcherednik <dcherednik@ydb.tech>2022-10-26 16:40:35 +0300
committerdcherednik <dcherednik@ydb.tech>2022-10-26 16:40:35 +0300
commitb981cca279190176740c3bf5c5b4fd03be51b599 (patch)
treef5ec6210fdce0e976cbbe4dc8ae78bb6509adf49 /contrib/libs/cxxsupp/libcxxabi-parts
parent6dc0de995652f7eeecdbdb88dc98b00bb0653a2f (diff)
downloadydb-b981cca279190176740c3bf5c5b4fd03be51b599.tar.gz
Enable linux-arm platform.
Diffstat (limited to 'contrib/libs/cxxsupp/libcxxabi-parts')
-rw-r--r--contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.darwin.txt36
-rw-r--r--contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux-aarch64.txt35
-rw-r--r--contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux.txt36
-rw-r--r--contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.txt35
4 files changed, 114 insertions, 28 deletions
diff --git a/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.darwin.txt b/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..b5c3cdc400
--- /dev/null
+++ b/contrib/libs/cxxsupp/libcxxabi-parts/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(libs-cxxsupp-libcxxabi-parts)
+target_compile_options(libs-cxxsupp-libcxxabi-parts PUBLIC
+ -nostdinc++
+)
+target_compile_options(libs-cxxsupp-libcxxabi-parts PRIVATE
+ -D_LIBCXXABI_BUILDING_LIBRARY
+ -Wno-everything
+)
+target_include_directories(libs-cxxsupp-libcxxabi-parts PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/include
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/include
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx
+)
+target_sources(libs-cxxsupp-libcxxabi-parts PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_thread_atexit.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/abort_message.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_demangle.cpp
+)
+set_property(
+ SOURCE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_thread_atexit.cpp
+ APPEND
+ PROPERTY
+ COMPILE_OPTIONS
+ -fPIC
+ -fno-lto
+)
diff --git a/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux-aarch64.txt b/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..b23a1c1005
--- /dev/null
+++ b/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux-aarch64.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(libs-cxxsupp-libcxxabi-parts)
+target_compile_options(libs-cxxsupp-libcxxabi-parts PUBLIC
+ -nostdinc++
+)
+target_compile_options(libs-cxxsupp-libcxxabi-parts PRIVATE
+ -D_LIBCXXABI_BUILDING_LIBRARY
+ -Wno-everything
+)
+target_include_directories(libs-cxxsupp-libcxxabi-parts PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/include
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/include
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx
+)
+target_sources(libs-cxxsupp-libcxxabi-parts PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_thread_atexit.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/abort_message.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_demangle.cpp
+)
+set_property(
+ SOURCE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_thread_atexit.cpp
+ APPEND
+ PROPERTY
+ COMPILE_OPTIONS
+ -fno-lto
+)
diff --git a/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux.txt b/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux.txt
new file mode 100644
index 0000000000..b5c3cdc400
--- /dev/null
+++ b/contrib/libs/cxxsupp/libcxxabi-parts/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(libs-cxxsupp-libcxxabi-parts)
+target_compile_options(libs-cxxsupp-libcxxabi-parts PUBLIC
+ -nostdinc++
+)
+target_compile_options(libs-cxxsupp-libcxxabi-parts PRIVATE
+ -D_LIBCXXABI_BUILDING_LIBRARY
+ -Wno-everything
+)
+target_include_directories(libs-cxxsupp-libcxxabi-parts PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/include
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/include
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx
+)
+target_sources(libs-cxxsupp-libcxxabi-parts PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_thread_atexit.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/abort_message.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_demangle.cpp
+)
+set_property(
+ SOURCE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_thread_atexit.cpp
+ APPEND
+ PROPERTY
+ COMPILE_OPTIONS
+ -fPIC
+ -fno-lto
+)
diff --git a/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.txt b/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.txt
index b5c3cdc400..3e0811fb22 100644
--- a/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.txt
+++ b/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.txt
@@ -6,31 +6,10 @@
# original buildsystem will not be accepted.
-
-add_library(libs-cxxsupp-libcxxabi-parts)
-target_compile_options(libs-cxxsupp-libcxxabi-parts PUBLIC
- -nostdinc++
-)
-target_compile_options(libs-cxxsupp-libcxxabi-parts PRIVATE
- -D_LIBCXXABI_BUILDING_LIBRARY
- -Wno-everything
-)
-target_include_directories(libs-cxxsupp-libcxxabi-parts PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/include
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/include
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx
-)
-target_sources(libs-cxxsupp-libcxxabi-parts PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_thread_atexit.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/abort_message.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_demangle.cpp
-)
-set_property(
- SOURCE
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_thread_atexit.cpp
- APPEND
- PROPERTY
- COMPILE_OPTIONS
- -fPIC
- -fno-lto
-)
+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()