aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-01-12 13:27:44 +0000
committerBlaž Hrastnik2022-01-23 07:04:12 +0000
commitdf0d58e9f74befebf902fff887a14ae59746b24b (patch)
treec7aa075886a8893cce1a2dd4c4bdcbcabc32b9c3
parent11c3ba935041437d11e1105dfa37480f2d27a6c4 (diff)
Set flags necessary for cargo-flamegraph
-rw-r--r--Cargo.toml1
-rw-r--r--flake.nix2
2 files changed, 2 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 8c3ee671..76e3ae51 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 317b6d3f..0d22c5c1 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"; }
];
};
};