python2: only pass -msse2 on x86_64-darwin, not any darwin
This commit is contained in:
parent
ac6a4f7cf5
commit
51f6036e41
|
@ -258,7 +258,7 @@ in with passthru; stdenv.mkDerivation ({
|
|||
LDFLAGS = lib.optionalString (!stdenv.isDarwin) "-lgcc_s";
|
||||
inherit (mkPaths buildInputs) C_INCLUDE_PATH LIBRARY_PATH;
|
||||
|
||||
NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin "-msse2"
|
||||
NIX_CFLAGS_COMPILE = optionalString (stdenv.targetPlatform.system == "x86_64-darwin") "-msse2"
|
||||
+ optionalString stdenv.hostPlatform.isMusl " -DTHREAD_STACK_SIZE=0x100000";
|
||||
DETERMINISTIC_BUILD = 1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue