emacs: set FD_SETSIZE and DARWIN_UNLIMITED_SELECT on darwin (#391407)
This commit is contained in:
@@ -460,10 +460,13 @@ mkDerivation (finalAttrs: {
|
||||
NATIVE_FULL_AOT = "1";
|
||||
LIBRARY_PATH = lib.concatStringsSep ":" libGccJitLibraryPaths;
|
||||
}
|
||||
// lib.optionalAttrs (variant == "macport") {
|
||||
# Fixes intermittent segfaults when compiled with LLVM >= 7.0.
|
||||
# See https://github.com/NixOS/nixpkgs/issues/127902
|
||||
NIX_CFLAGS_COMPILE = "-include ${./macport_noescape_noop.h}";
|
||||
// {
|
||||
NIX_CFLAGS_COMPILE = lib.concatStringsSep " " [
|
||||
# Fixes intermittent segfaults when compiled with LLVM >= 7.0.
|
||||
# See https://github.com/NixOS/nixpkgs/issues/127902
|
||||
(lib.optionalString (variant == "macport") "-include ${./macport_noescape_noop.h}")
|
||||
(lib.optionalString stdenv.hostPlatform.isDarwin "-DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT")
|
||||
];
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
Reference in New Issue
Block a user