Skip to content

Commit

Permalink
Avoid rip-relative addressing for OSX x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger authored and FrancescAlted committed Sep 9, 2024
1 parent b179abf commit af8b50a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions blosc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ if(BUILD_SHARED)
$<INSTALL_INTERFACE:include>)
endif()
if(BUILD_STATIC)
add_compile_definitions(BUILD_STATIC)
add_library(blosc2_static STATIC)
# ALIAS for superbuilds that use Blosc2 as sub-project
# must be the same as the NAMESPACE in Blosc2Targets
Expand Down
2 changes: 1 addition & 1 deletion blosc/shuffle.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

// __builtin_cpu_supports() fixed in GCC 8: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85100
// Also, clang added support for it in clang 10 at very least (and possibly since 3.8)
#if (defined(__clang__) && (__clang_major__ >= 10)) || \
#if (defined(__clang__) && (__clang_major__ >= 10)) && !(defined(__APPLE__) && defined(__x86_64__) && defined(BUILD_STATIC)) || \
(defined(__GNUC__) && defined(__GNUC_MINOR__) && __GNUC__ >= 8)
#define HAVE_CPU_FEAT_INTRIN
#endif
Expand Down

0 comments on commit af8b50a

Please sign in to comment.