Skip to content

Commit

Permalink
Atomic for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Dec 10, 2024
1 parent 27a7edb commit 96c9cf5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(WVLET_STATIC_PATH "${CMAKE_CURRENT_SOURCE_DIR}/third-party/linux-arm64_libwvlet.a")
set(WVLET_DYNAMIC_URL "https://github.com/quackscience/wvlet-lib/releases/download/latest/linux-arm64_libwvlet.so")
set(WVLET_DYNAMIC_PATH "${CMAKE_CURRENT_SOURCE_DIR}/third-party/linux-arm64_libwvlet.so")
string(APPEND _GNU_COMMON_C_CXX_FLAGS " -mno-outline-atomics")
endif()
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(WVLET_STATIC_URL "https://github.com/quackscience/wvlet-lib/releases/download/latest/mac-arm64_libwvlet.a")
Expand Down Expand Up @@ -82,6 +81,11 @@ set(STATIC_LIBS
OpenSSL::SSL
)

if(VCPKG_TARGET_TRIPLET MATCHES "arm64-linux")
string(APPEND _GNU_COMMON_C_CXX_FLAGS " -mno-outline-atomics")
list(APPEND STATIC_LIBS atomic)
endif()

# For static extension, use static library with correct link order
target_link_libraries(${EXTENSION_NAME}
# ${WVLET_DYNAMIC_PATH}
Expand Down

0 comments on commit 96c9cf5

Please sign in to comment.