Skip to content

Commit

Permalink
fix: tikv-jmalloc fails to build in debug mode by disabling hardening…
Browse files Browse the repository at this point in the history
… in fuel-dev shell (#167)

closes #166.

Removes the auto hardening enabled on nixOS to fix the build fail in
debug mode for fuel repos. More details about the issue and root cause
can be found in the issue ticker.
  • Loading branch information
kayagokalp authored Feb 18, 2025
1 parent 6c6bc61 commit 4d702a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,9 @@
in
(pkgs.lib.mapAttrsToList (n: v: v) currentNightlies) ++ [fuel-core-dev sway-dev];
inherit (fuel-core-dev) LIBCLANG_PATH ROCKSDB_LIB_DIR PROTOC NIX_CFLAGS_COMPILE;
# Remove the hardening added by nix to fix jmalloc compilation error.
# More info: https://github.com/tikv/jemallocator/issues/108
hardeningDisable = ["fortify"];
};

default = fuel-dev;
Expand Down

0 comments on commit 4d702a5

Please sign in to comment.