Merge pull request #296796 from ElvishJerricco/mongodb-fix-darwin

mongodb: Fix darwin
This commit is contained in:
Weijia Wang 2024-03-18 05:25:37 +01:00 committed by GitHub
commit 9ad7c8e988
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -144,6 +144,7 @@ in stdenv.mkDerivation rec {
preBuild = '' preBuild = ''
sconsFlags+=" CC=$CC" sconsFlags+=" CC=$CC"
sconsFlags+=" CXX=$CXX" sconsFlags+=" CXX=$CXX"
'' + optionalString (!stdenv.isDarwin) ''
sconsFlags+=" AR=$AR" sconsFlags+=" AR=$AR"
'' + optionalString stdenv.isAarch64 '' '' + optionalString stdenv.isAarch64 ''
sconsFlags+=" CCFLAGS='-march=armv8-a+crc'" sconsFlags+=" CCFLAGS='-march=armv8-a+crc'"