aboutsummaryrefslogtreecommitdiff
path: root/package.nix
diff options
context:
space:
mode:
authorjade <lix@jade.fyi>2024-03-28 20:27:32 +0000
committerGerrit Code Review <gerrit@lix>2024-03-28 20:27:32 +0000
commit61d394e34431eb18c2f750f04e8934238d3508bd (patch)
treecb1a3aadd651495f499f52d435811d01ebfb6683 /package.nix
parentae065a992d250cbfedb0ca47215f152ea85bc496 (diff)
parent14207e1cf83737443636a25534075427f65c1de4 (diff)
Merge "Build with traps on signed overflow" into main
Diffstat (limited to 'package.nix')
-rw-r--r--package.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/package.nix b/package.nix
index a47814bd8..5def8416a 100644
--- a/package.nix
+++ b/package.nix
@@ -297,7 +297,9 @@ in stdenv.mkDerivation (finalAttrs: {
strictDeps = true;
- hardeningDisable = lib.optional stdenv.hostPlatform.isStatic "pie";
+ # strictoverflow is disabled because we trap on signed overflow instead
+ hardeningDisable = [ "strictoverflow" ]
+ ++ lib.optional stdenv.hostPlatform.isStatic "pie";
meta.platforms = lib.platforms.unix;