about summary refs log tree commit diff
path: root/xtask/src/dist.rs
diff options
context:
space:
mode:
authorAleksey Kladov <aleksey.kladov@gmail.com>2021-05-24 14:41:31 +0300
committerAleksey Kladov <aleksey.kladov@gmail.com>2021-05-24 14:41:31 +0300
commit3ea62568bab58efe4a6abcbdd71aee1e41b1dde9 (patch)
tree494e6f21daac882944dff3236be108045656c3a2 /xtask/src/dist.rs
parentca19c63f2065f9e2d5d6178f006d909d64b9c219 (diff)
downloadrust-3ea62568bab58efe4a6abcbdd71aee1e41b1dde9.tar.gz
rust-3ea62568bab58efe4a6abcbdd71aee1e41b1dde9.zip
internal: try re-enabling debug info on releases again
full LTO OOMs the LLVM, lets try thin

cc https://github.com/rust-lang/rust/issues/85598
Diffstat (limited to 'xtask/src/dist.rs')
-rw-r--r--xtask/src/dist.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/xtask/src/dist.rs b/xtask/src/dist.rs
index 270719de766..7ac9ae5b863 100644
--- a/xtask/src/dist.rs
+++ b/xtask/src/dist.rs
@@ -66,12 +66,8 @@ fn dist_client(version: &str, release_tag: &str) -> Result<()> {
 
 fn dist_server(release_channel: &str) -> Result<()> {
     let _e = pushenv("RUST_ANALYZER_CHANNEL", release_channel);
-    let _e = pushenv("CARGO_PROFILE_RELEASE_LTO", "true");
-
-    // We want do enable debug symbols, but this causes our windows CI to fail:
-    // https://github.com/rust-lang/rust/issues/85598
-    //
-    // let _e = pushenv("CARGO_PROFILE_RELEASE_DEBUG", "1");
+    let _e = pushenv("CARGO_PROFILE_RELEASE_LTO", "thin");
+    let _e = pushenv("CARGO_PROFILE_RELEASE_DEBUG", "1");
 
     let target = get_target();
     if target.contains("-linux-gnu") || target.contains("-linux-musl") {