mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
Merge pull request #202252 from prusnak/rocksdb-no-force-sse42
rocksdb: don't force SSE 4.2 on x86
This commit is contained in:
commit
2b3c7b8ccc
@ -11,6 +11,7 @@
|
|||||||
, enableJemalloc ? false, jemalloc
|
, enableJemalloc ? false, jemalloc
|
||||||
, enableLite ? false
|
, enableLite ? false
|
||||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||||
|
, sse42Support ? stdenv.hostPlatform.sse4_2Support
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -48,9 +49,7 @@ stdenv.mkDerivation rec {
|
|||||||
"-DWITH_GFLAGS=0"
|
"-DWITH_GFLAGS=0"
|
||||||
"-DUSE_RTTI=1"
|
"-DUSE_RTTI=1"
|
||||||
"-DROCKSDB_INSTALL_ON_WINDOWS=YES" # harmless elsewhere
|
"-DROCKSDB_INSTALL_ON_WINDOWS=YES" # harmless elsewhere
|
||||||
(lib.optional
|
(lib.optional sse42Support "-DFORCE_SSE42=1")
|
||||||
(stdenv.hostPlatform.isx86 && stdenv.hostPlatform.isLinux)
|
|
||||||
"-DFORCE_SSE42=1")
|
|
||||||
(lib.optional enableLite "-DROCKSDB_LITE=1")
|
(lib.optional enableLite "-DROCKSDB_LITE=1")
|
||||||
"-DFAIL_ON_WARNINGS=${if stdenv.hostPlatform.isMinGW then "NO" else "YES"}"
|
"-DFAIL_ON_WARNINGS=${if stdenv.hostPlatform.isMinGW then "NO" else "YES"}"
|
||||||
] ++ lib.optional (!enableShared) "-DROCKSDB_BUILD_SHARED=0";
|
] ++ lib.optional (!enableShared) "-DROCKSDB_BUILD_SHARED=0";
|
||||||
|
Loading…
Reference in New Issue
Block a user