Skip to content

Commit

Permalink
Disable fortification for debug in nix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
jeaye committed Jan 12, 2025
1 parent 0225637 commit 41d0a5e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@
## Dev libs.
doctest
];

# Nix assumes fortification by default, but that fails with debug builds.
# Since this shell is used for development, we disabled fortification. It's
# still enabled for our release builds in build.nix.
# https://github.com/NixOS/nixpkgs/issues/18995
hardeningDisable = [ "fortify" ];
};
};
};
Expand Down

0 comments on commit 41d0a5e

Please sign in to comment.