cli: look for ldconfig in the right location for 32 bit installs (#166723)

See https://github.com/microsoft/vscode-remote-release/issues/7495\#issuecomment-1320331537
This commit is contained in:
Connor Peet 2022-11-18 10:34:34 -08:00 committed by GitHub
parent 84706695e0
commit 03798c3b1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -157,7 +157,10 @@ async fn check_is_nixos() -> bool {
async fn check_glibcxx_version() -> Result<(), String> {
let mut libstdc_path: Option<String> = None;
#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
const DEFAULT_LIB_PATH: &str = "/usr/lib64/libstdc++.so.6";
#[cfg(any(target_arch = "x86", target_arch = "arm"))]
const DEFAULT_LIB_PATH: &str = "/usr/lib/libstdc++.so.6";
const LDCONFIG_PATH: &str = "/sbin/ldconfig";
if fs::metadata(DEFAULT_LIB_PATH).await.is_ok() {