arangodb: remove unused cmake flags

USE_OPTIMIZE_FOR_ARCHITECTURE was removed without commit in a prior
commit. This is because it was removed upstream:

cc860c333c

This is unfortunate - now /proc/cpuinfo is read unconditionally for
feature detection.

Some other means of feature detection will have to be found.
This commit is contained in:
John Soo 2022-10-26 17:25:23 -07:00
parent 704d2dccb9
commit b671f4f09f
No known key found for this signature in database
GPG key ID: D8A148F8CE4DDBC2

View file

@ -41,14 +41,7 @@ stdenv.mkDerivation rec {
substituteInPlace js/server/server.js --replace "require('@arangodb').checkAvailableVersions();" ""
'';
cmakeFlags = [
# disable "maintainer mode"
"-DUSE_MAINTAINER_MODE=OFF"
# avoid using builder's /proc/cpuinfo
"-DHAVE_SSE42=${if stdenv.hostPlatform.sse4_2Support then "ON" else "OFF"}"
"-DASM_OPTIMIZATIONS=${if stdenv.hostPlatform.sse4_2Support then "ON" else "OFF"}"
];
cmakeFlags = [ "-DUSE_MAINTAINER_MODE=OFF" ];
meta = with lib; {
homepage = "https://www.arangodb.com";