internal: disable debug symbols due to failing windows build

See https://github.com/rust-lang/rust/issues/85598
This commit is contained in:
Aleksey Kladov 2021-05-23 14:06:25 +03:00
parent 808ebe4b86
commit 9f9c4bf3de

View File

@ -67,7 +67,12 @@ 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");
let _e = pushenv("CARGO_PROFILE_RELEASE_DEBUG", "1");
// 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 target = get_target();
if target.contains("-linux-gnu") || target.contains("-linux-musl") {
env::set_var("CC", "clang");