Skip to content

Commit

Permalink
Set flags necessary for cargo-flamegraph
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Jan 23, 2022
1 parent 11c3ba9 commit df0d58e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ split-debuginfo = "unpacked"

[profile.release]
lto = "thin"
# debug = true
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
env = prev.env ++ [
{ name = "HELIX_RUNTIME"; eval = "$PWD/runtime"; }
{ name = "RUST_BACKTRACE"; value = "1"; }
{ name = "RUSTFLAGS"; value = "-C link-arg=-fuse-ld=lld -C target-cpu=native"; }
{ name = "RUSTFLAGS"; value = "-C link-arg=-fuse-ld=lld -C target-cpu=native -Clink-arg=-Wl,--no-rosegment"; }
];
};
};
Expand Down

0 comments on commit df0d58e

Please sign in to comment.