aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2022-12-23 13:31:23 +0300
committerthegeorg <thegeorg@yandex-team.com>2022-12-23 13:31:23 +0300
commit66fd5778789f2d694e7f498a0aa0b5c855af8cfb (patch)
tree0b5e1460dd8eee2d437fceb0be72c48f2706e8e6
parent510d1f24d12b49957d66468ccfaedd05ce412b92 (diff)
downloadydb-66fd5778789f2d694e7f498a0aa0b5c855af8cfb.tar.gz
Allow building boost/atomic without SSE4
-rw-r--r--contrib/restricted/boost/atomic/CMakeLists.darwin.txt3
-rw-r--r--contrib/restricted/boost/atomic/CMakeLists.linux-aarch64.txt1
-rw-r--r--contrib/restricted/boost/atomic/CMakeLists.linux.txt3
3 files changed, 4 insertions, 3 deletions
diff --git a/contrib/restricted/boost/atomic/CMakeLists.darwin.txt b/contrib/restricted/boost/atomic/CMakeLists.darwin.txt
index 5b62fa5258..521fec39df 100644
--- a/contrib/restricted/boost/atomic/CMakeLists.darwin.txt
+++ b/contrib/restricted/boost/atomic/CMakeLists.darwin.txt
@@ -10,6 +10,7 @@
add_library(restricted-boost-atomic)
target_compile_options(restricted-boost-atomic PRIVATE
-DBOOST_ATOMIC_SOURCE
+ -DBOOST_ATOMIC_USE_SSE41
-Wno-everything
)
target_include_directories(restricted-boost-atomic PUBLIC
@@ -31,6 +32,6 @@ target_link_libraries(restricted-boost-atomic PUBLIC
)
target_sources(restricted-boost-atomic PRIVATE
${CMAKE_SOURCE_DIR}/contrib/restricted/boost/atomic/src/find_address_sse2.cpp
- ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/atomic/src/find_address_sse41.cpp
${CMAKE_SOURCE_DIR}/contrib/restricted/boost/atomic/src/lock_pool.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/atomic/src/find_address_sse41.cpp
)
diff --git a/contrib/restricted/boost/atomic/CMakeLists.linux-aarch64.txt b/contrib/restricted/boost/atomic/CMakeLists.linux-aarch64.txt
index cc6781a375..52aeb7fe24 100644
--- a/contrib/restricted/boost/atomic/CMakeLists.linux-aarch64.txt
+++ b/contrib/restricted/boost/atomic/CMakeLists.linux-aarch64.txt
@@ -32,6 +32,5 @@ target_link_libraries(restricted-boost-atomic PUBLIC
)
target_sources(restricted-boost-atomic PRIVATE
${CMAKE_SOURCE_DIR}/contrib/restricted/boost/atomic/src/find_address_sse2.cpp
- ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/atomic/src/find_address_sse41.cpp
${CMAKE_SOURCE_DIR}/contrib/restricted/boost/atomic/src/lock_pool.cpp
)
diff --git a/contrib/restricted/boost/atomic/CMakeLists.linux.txt b/contrib/restricted/boost/atomic/CMakeLists.linux.txt
index cc6781a375..f0e9192562 100644
--- a/contrib/restricted/boost/atomic/CMakeLists.linux.txt
+++ b/contrib/restricted/boost/atomic/CMakeLists.linux.txt
@@ -10,6 +10,7 @@
add_library(restricted-boost-atomic)
target_compile_options(restricted-boost-atomic PRIVATE
-DBOOST_ATOMIC_SOURCE
+ -DBOOST_ATOMIC_USE_SSE41
-Wno-everything
)
target_include_directories(restricted-boost-atomic PUBLIC
@@ -32,6 +33,6 @@ target_link_libraries(restricted-boost-atomic PUBLIC
)
target_sources(restricted-boost-atomic PRIVATE
${CMAKE_SOURCE_DIR}/contrib/restricted/boost/atomic/src/find_address_sse2.cpp
- ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/atomic/src/find_address_sse41.cpp
${CMAKE_SOURCE_DIR}/contrib/restricted/boost/atomic/src/lock_pool.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/atomic/src/find_address_sse41.cpp
)