Skip to content

Commit 618da1e

Browse files
authored
cli: fix arch check for musl arm64 (microsoft#172092)
Fixes microsoft/vscode-remote-release#7812 Wish Rust had compilation errors for bad compile time checks :(
1 parent 751e7c7 commit 618da1e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/src/util/prereqs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl PreReqChecker {
105105

106106
#[allow(dead_code)]
107107
async fn check_musl_interpreter() -> Result<(), String> {
108-
const MUSL_PATH: &str = if cfg!(target_platform = "aarch64") {
108+
const MUSL_PATH: &str = if cfg!(target_arch = "aarch64") {
109109
"/lib/ld-musl-aarch64.so.1"
110110
} else {
111111
"/lib/ld-musl-x86_64.so.1"

0 commit comments

Comments
 (0)