Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
};

# The cc-wrapper's fortify hardening adds -D_FORTIFY_SOURCE to every
# C compile. Debug builds compile C at -O0, so glibc then emits
# "_FORTIFY_SOURCE requires compiling with optimization". jemalloc's
# configure probes compile with -Werror, so every probe fails and
# configure stops ("cannot determine return type of strerror_r").
# This shell only makes development builds; release images are
# built outside it.
hardeningDisable = [ "fortify" ];

shellHook = ''
# Insulate cargo from the host's rustup installation.
#
Expand Down
Loading