mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
fix: skip glibc requirements check on nixos (#202982)
This commit is contained in:
@@ -10,6 +10,13 @@ ARCH=$(uname -m)
|
||||
found_required_glibc=0
|
||||
found_required_glibcxx=0
|
||||
|
||||
# Extract the ID value from /etc/os-release
|
||||
OS_ID="$(cat /etc/os-release | grep -Eo 'ID=([^"]+)' | sed 's/ID=//')"
|
||||
if [ "$OS_ID" = "nixos" ]; then
|
||||
echo "Warning: NixOS detected, skipping GLIBC check"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Based on https://github.com/bminor/glibc/blob/520b1df08de68a3de328b65a25b86300a7ddf512/elf/cache.c#L162-L245
|
||||
case $ARCH in
|
||||
x86_64) LDCONFIG_ARCH="x86-64";;
|
||||
|
||||
Reference in New Issue
Block a user