aboutsummaryrefslogtreecommitdiff
path: root/package.nix
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-09-01 01:37:10 +0200
committereldritch horrors <pennae@lix.systems>2024-09-09 01:48:20 +0000
commitc14486ae8d3bbc862c625d948a6b2f4dc0927d5b (patch)
treec2b2d1256d6e8cdb292537f3f339fec5907fb86f /package.nix
parente9505dcc5a0ff259b9e284e9e617486e81a1ff6f (diff)
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
Diffstat (limited to 'package.nix')
-rw-r--r--package.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/package.nix b/package.nix
index e5ab5eff0..eebf222b7 100644
--- a/package.nix
+++ b/package.nix
@@ -90,6 +90,10 @@
capnproto-lix = capnproto.overrideAttrs { CXXFLAGS = "-std=c++20"; };
},
}:
+
+# gcc miscompiles coroutines at least until 13.2, possibly longer
+assert stdenv.cc.isClang || lintInsteadOfBuild;
+
let
inherit (__forDefaults) canRunInstalled;
inherit (lib) fileset;