arangodb: avoid reading /proc/cpuinfo during build

Avoid non-deterministic builds of ArangoDB proper. Note that this
provides 0 guarantees about the vendored libraries doing anything
similar.
This commit is contained in:
John Soo 2022-10-27 10:59:58 -07:00
parent 2f6e24b810
commit 10fda118ee
No known key found for this signature in database
GPG Key ID: D8A148F8CE4DDBC2

View File

@ -45,6 +45,9 @@ gcc10Stdenv.mkDerivation rec {
"-DUSE_MAINTAINER_MODE=OFF"
"-DUSE_GOOGLE_TESTS=off"
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
# avoid reading /proc/cpuinfo for feature detection
"-DTARGET_ARCHITECTURE=generic"
];
meta = with lib; {