| 20 Oct 2022 |
aktaboot | to debug the binary ? 🤔 | 17:16:03 |
Charles ⚡️ | i think that needs to be set at runtime | 17:21:33 |
Charles ⚡️ | not build time | 17:21:36 |
aktaboot | oh | 18:32:54 |
aktaboot | then I meant to compile with the debug flag | 18:33:09 |
Charles ⚡️ | i have no idea but my guess is you want to set RUSTFLAGS to include something | 18:33:46 |
Charles ⚡️ | you could also tell naersk to build in debug mode but you forfeit performance | 18:34:09 |
aktaboot | cargo does it by defulat wihout the --release | 18:34:32 |
aktaboot | In reply to @charles:computer.surgery you could also tell naersk to build in debug mode but you forfeit performance yea that is what I meant ig | 18:34:48 |
a-kenji | buildType = "debug"; | 18:34:55 |
Charles ⚡️ | by default naersk builds in release mode | 18:35:13 |
a-kenji | | 18:36:44 |
aktaboot | In reply to @a-kenji:matrix.org
buildType = "debug"; thanks, this is not inherent to naersk, is it ? | 18:36:58 |
a-kenji | * rustPlatform.buildRustPackage {
buildType = "debug";
}
| 18:37:04 |
Charles ⚡️ | it is | 18:37:18 |
a-kenji | No that is native nixpkgs | 18:37:16 |
Charles ⚡️ | their github readme documents this stuff | 18:37:29 |
Charles ⚡️ | also make sure debug mode is what you want | 18:37:39 |
Charles ⚡️ | if you just want stack traces for panics then debug mode might not be desirable over just enabling symbols | 18:38:00 |
aktaboot | couldn't find buildType in their readme, but it seems to be working | 18:39:31 |
aktaboot | there is cargoBuildOptions though | 18:39:44 |
Charles ⚡️ | In reply to @a-kenji:matrix.org No that is native nixpkgs oh | 18:39:47 |
aktaboot | hmm buildType did not work | 18:48:30 |
aktaboot | * hmm buildType="debug"; did not work | 18:49:43 |
a-kenji | In buildRustPackage? | 18:50:38 |
aktaboot | oh no, you're right I did that in naersk.buildPackage | 18:52:00 |
a-kenji | Oh yeah sorry, I don't know if that would work in naersk. | 18:52:29 |
Charles ⚡️ | that'll do it then | 18:52:30 |
Charles ⚡️ | you need to figure out what naersk's option is | 18:52:38 |
aktaboot | yeah I have to learn some nix | 18:52:56 |