Skip to content

Commit 03798c3

Browse files
authored
cli: look for ldconfig in the right location for 32 bit installs (microsoft#166723)
See https://github.com/microsoft/vscode-remote-release/issues/7495\#issuecomment-1320331537
1 parent 8470669 commit 03798c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cli/src/util/prereqs.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,10 @@ async fn check_is_nixos() -> bool {
157157
async fn check_glibcxx_version() -> Result<(), String> {
158158
let mut libstdc_path: Option<String> = None;
159159

160+
#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
160161
const DEFAULT_LIB_PATH: &str = "/usr/lib64/libstdc++.so.6";
162+
#[cfg(any(target_arch = "x86", target_arch = "arm"))]
163+
const DEFAULT_LIB_PATH: &str = "/usr/lib/libstdc++.so.6";
161164
const LDCONFIG_PATH: &str = "/sbin/ldconfig";
162165

163166
if fs::metadata(DEFAULT_LIB_PATH).await.is_ok() {

0 commit comments

Comments
 (0)