diff --git a/vendored/rocksdb-haskell/rocksdb-6.29.3/util/crc32c.cc b/vendored/rocksdb-haskell/rocksdb-6.29.3/util/crc32c.cc index 94135d51f1..e82c05b50d 100644 --- a/vendored/rocksdb-haskell/rocksdb-6.29.3/util/crc32c.cc +++ b/vendored/rocksdb-haskell/rocksdb-6.29.3/util/crc32c.cc @@ -355,6 +355,7 @@ static inline void Slow_CRC32(uint64_t* l, uint8_t const **p) { table0_[c >> 24]; } +#if defined(__linux__) #if (!(defined(HAVE_POWER8) && defined(HAS_ALTIVEC))) && \ (!defined(HAVE_ARM64_CRC)) || \ defined(NO_THREEWAY_CRC32C) @@ -372,6 +373,7 @@ static inline void Fast_CRC32(uint64_t* l, uint8_t const **p) { #endif } #endif +#endif template uint32_t ExtendImpl(uint32_t crc, const char* buf, size_t size) { diff --git a/vendored/rocksdb-haskell/rocksdb-haskell-kadena.cabal b/vendored/rocksdb-haskell/rocksdb-haskell-kadena.cabal index db0fd99906..87a04bf9da 100644 --- a/vendored/rocksdb-haskell/rocksdb-haskell-kadena.cabal +++ b/vendored/rocksdb-haskell/rocksdb-haskell-kadena.cabal @@ -131,9 +131,7 @@ library -DLZ4 -DZSTD -DROCKSDB_BACKTRACE - -march=x86-64 -mtune=generic - -msse3 -DROCKSDB_SUPPORT_THREAD_LOCAL -fno-omit-frame-pointer -momit-leaf-frame-pointer @@ -143,6 +141,11 @@ library -Wno-missing-field-initializers -O2 + if arch(x86_64) + cxx-options: + -march=x86-64 + -msse3 + if flag(with-tbb) cxx-options: -DTBB