From 5e2d2938b9bebe205fc7f40996dea7ed9234758b Mon Sep 17 00:00:00 2001 From: axiom Date: Fri, 7 Mar 2025 19:18:59 +0300 Subject: [PATCH] OPENIDE workaround for rust bug in xplat launcher --- native/XPlatLauncher/build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/native/XPlatLauncher/build.rs b/native/XPlatLauncher/build.rs index b0ef5ea66953..a9f22a9a4191 100644 --- a/native/XPlatLauncher/build.rs +++ b/native/XPlatLauncher/build.rs @@ -1,4 +1,7 @@ // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +// +// Modified by Dmitrij Pochepko at 2025 as part of the OpenIDE project (https://openide.ru). +// Any modifications are available on the same license terms as the original source code. // technically we shouldn't use #cfg in build.rs due to cross-compilation, // but the only we do is windows x64 -> arm64, so it's fine for our purposes @@ -176,6 +179,7 @@ fn extract_tar_bz2(archive: &Path, dest: &Path, extract_marker: &Path) -> Result false => { trace!("Using tar"); Command::new("tar") + .env("_OPENIDE_FOO", "bar") // workaround for rust issue 37519 .arg("-xjvf") .arg(get_non_unc_string(archive)?) .arg("-C")