diff options
author | Aleksey Kladov <[email protected]> | 2021-05-27 09:53:33 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-05-27 09:53:33 +0100 |
commit | 7d8f701e99885c8d972f05311f9a7ac7a8dda180 (patch) | |
tree | 94ade98fa56583cad2ca7dbf81991ea791454cef /xtask | |
parent | 7d1653dcdc94347cccaf8d50d45d896a3c286d93 (diff) |
internal: disable debuginfo afterall
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/dist.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xtask/src/dist.rs b/xtask/src/dist.rs index 7ac9ae5b8..3a67294c5 100644 --- a/xtask/src/dist.rs +++ b/xtask/src/dist.rs | |||
@@ -67,7 +67,11 @@ fn dist_client(version: &str, release_tag: &str) -> Result<()> { | |||
67 | fn dist_server(release_channel: &str) -> Result<()> { | 67 | fn dist_server(release_channel: &str) -> Result<()> { |
68 | let _e = pushenv("RUST_ANALYZER_CHANNEL", release_channel); | 68 | let _e = pushenv("RUST_ANALYZER_CHANNEL", release_channel); |
69 | let _e = pushenv("CARGO_PROFILE_RELEASE_LTO", "thin"); | 69 | let _e = pushenv("CARGO_PROFILE_RELEASE_LTO", "thin"); |
70 | let _e = pushenv("CARGO_PROFILE_RELEASE_DEBUG", "1"); | 70 | |
71 | // Uncomment to enable debug info for releases. Note that: | ||
72 | // * debug info is split on windows and macs, so it does nothing for those platforms, | ||
73 | // * on Linux, this blows up the binary size from 8MB to 43MB, which is unreasonable. | ||
74 | // let _e = pushenv("CARGO_PROFILE_RELEASE_DEBUG", "1"); | ||
71 | 75 | ||
72 | let target = get_target(); | 76 | let target = get_target(); |
73 | if target.contains("-linux-gnu") || target.contains("-linux-musl") { | 77 | if target.contains("-linux-gnu") || target.contains("-linux-musl") { |