From 618da1e00aab83b106472891e8e31fa179a6e911 Mon Sep 17 00:00:00 2001 From: Connor Peet Date: Mon, 23 Jan 2023 16:50:24 -0800 Subject: [PATCH] cli: fix arch check for musl arm64 (#172092) Fixes https://github.com/microsoft/vscode-remote-release/issues/7812 Wish Rust had compilation errors for bad compile time checks :( --- cli/src/util/prereqs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/util/prereqs.rs b/cli/src/util/prereqs.rs index 134ce9bd0cd..97e01bd5e9f 100644 --- a/cli/src/util/prereqs.rs +++ b/cli/src/util/prereqs.rs @@ -105,7 +105,7 @@ impl PreReqChecker { #[allow(dead_code)] async fn check_musl_interpreter() -> Result<(), String> { - const MUSL_PATH: &str = if cfg!(target_platform = "aarch64") { + const MUSL_PATH: &str = if cfg!(target_arch = "aarch64") { "/lib/ld-musl-aarch64.so.1" } else { "/lib/ld-musl-x86_64.so.1"