From c14486ae8d3bbc862c625d948a6b2f4dc0927d5b Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Sun, 1 Sep 2024 01:37:10 +0200 Subject: forbid gcc for compilation, only allow clang while gcc 12 and older miscompile our generators, gcc 13 and older outright crash on kj coroutines. (newer gcc versions may fix this) Change-Id: I19f12c8c147239680eb0fa5a84ef5c7de38c9263 --- flake.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 662469479..46f9e43e8 100644 --- a/flake.nix +++ b/flake.nix @@ -99,9 +99,10 @@ ]; stdenvs = [ - "gccStdenv" + # see assertion in package.nix why these two are disabled + # "stdenv" + # "gccStdenv" "clangStdenv" - "stdenv" "libcxxStdenv" "ccacheStdenv" ]; @@ -121,7 +122,11 @@ name = "${stdenvName}Packages"; value = f stdenvName; }) stdenvs - ); + ) + // { + # TODO delete this and reënable gcc stdenvs once gcc compiles kj coros correctly + stdenvPackages = f "clangStdenv"; + }; # Memoize nixpkgs for different platforms for efficiency. nixpkgsFor = forAllSystems ( -- cgit v1.2.3