From df0d58e9f74befebf902fff887a14ae59746b24b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Wed, 12 Jan 2022 22:27:44 +0900 Subject: [PATCH] Set flags necessary for cargo-flamegraph --- Cargo.toml | 1 + flake.nix | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 8c3ee6717..76e3ae51a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,3 +18,4 @@ split-debuginfo = "unpacked" [profile.release] lto = "thin" +# debug = true diff --git a/flake.nix b/flake.nix index 317b6d3fc..0d22c5c1a 100644 --- a/flake.nix +++ b/flake.nix @@ -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"; } ]; }; };