From ae2b2849c97399b7aa81b2df76ff738887545b8d Mon Sep 17 00:00:00 2001 From: John Ericson Date: Fri, 12 Jan 2024 20:21:33 -0500 Subject: [PATCH] Disable GC on windows We can build the dep and the our GC code is totally portable, but for some reason we get link errors saying `GC_throw_bad_alloc` is missing. --- package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.nix b/package.nix index 7d9a39771..db17badf0 100644 --- a/package.nix +++ b/package.nix @@ -75,7 +75,10 @@ # sounds so long as evaluation just takes places within short-lived # processes. (When the process exits, the memory is reclaimed; it is # only leaked *within* the process.) -, enableGC ? true +# +# Temporarily disabled on Windows because the `GC_throw_bad_alloc` +# symbol is missing during linking. +, enableGC ? !stdenv.hostPlatform.isWindows # Whether to enable Markdown rendering in the Nix binary. , enableMarkdown ? !stdenv.hostPlatform.isWindows