mongodb: Stop overriding -march and -mtune on <5.0.
This commit is contained in:
parent
0cd51a933d
commit
bae4239b72
|
@ -116,6 +116,9 @@ in stdenv.mkDerivation rec {
|
||||||
#include <string>'
|
#include <string>'
|
||||||
substituteInPlace src/mongo/db/exec/plan_stats.h --replace '#include <string>' '#include <optional>
|
substituteInPlace src/mongo/db/exec/plan_stats.h --replace '#include <string>' '#include <optional>
|
||||||
#include <string>'
|
#include <string>'
|
||||||
|
'' + lib.optionalString (versionOlder version "5.0") ''
|
||||||
|
# remove -march overriding, we know better.
|
||||||
|
sed -i 's/env.Append.*-march=.*$/pass/' SConstruct
|
||||||
'' + lib.optionalString (stdenv.isDarwin && versionOlder version "6.0") ''
|
'' + lib.optionalString (stdenv.isDarwin && versionOlder version "6.0") ''
|
||||||
substituteInPlace src/third_party/mozjs-${variants.mozjsVersion}/extract/js/src/jsmath.cpp --replace '${variants.mozjsReplace}' 0
|
substituteInPlace src/third_party/mozjs-${variants.mozjsVersion}/extract/js/src/jsmath.cpp --replace '${variants.mozjsReplace}' 0
|
||||||
'' + lib.optionalString (stdenv.isDarwin && versionOlder version "3.6") ''
|
'' + lib.optionalString (stdenv.isDarwin && versionOlder version "3.6") ''
|
||||||
|
|
Loading…
Reference in a new issue