[rdct] fix native launcher compilation

GitOrigin-RevId: 01bc51664d31da513570c430ccab6ebef749ed10
This commit is contained in:
Nikolay Kuznetsov
2024-01-29 16:58:14 +01:00
committed by intellij-monorepo-bot
parent b0837c9414
commit 805ee65022

View File

@@ -601,7 +601,9 @@ fn init_env_vars(launcher_name_for_usage: &str) -> Result<()> {
}
let os_spec = get_os_specific_env_vars();
remote_dev_env_var_values.extend(os_spec);
for (key, value) in os_spec.iter() {
remote_dev_env_var_values.push((key, value))
}
for (key, value) in remote_dev_env_var_values {
match env::var(key) {
@@ -620,7 +622,7 @@ fn init_env_vars(launcher_name_for_usage: &str) -> Result<()> {
return Ok(())
}
#[cfg(target_os = "macos")]
fn get_os_specific_env_vars() {
fn get_os_specific_env_vars() -> Vec<(String, String)> {
// GTW-6786 fix macos host crashing on start
vec![("AWT_FORCE_HEADFUL".to_string(), "true".to_string())]
}