Skip to content

Commit

Permalink
optimized
Browse files Browse the repository at this point in the history
Signed-off-by: leleliu008 <leleliu008@gmail.com>
  • Loading branch information
leleliu008 committed Feb 14, 2024
1 parent 4afb6ae commit e424b75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/wsl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,8 @@ jobs:

- run: ./ndk-pkg setup

# https://github.com/microsoft/WSL/issues/8681
- run: patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 ~/.uppm/installed/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang

- run: ./ndk-pkg sysinfo


- run: ./ndk-pkg integrate zsh

- run: ./ndk-pkg update
Expand Down
6 changes: 6 additions & 0 deletions ndk-pkg
Original file line number Diff line number Diff line change
Expand Up @@ -8008,6 +8008,12 @@ ndkinfo() {
ANDROID_NDK_IS_INSTALLED_VIA_UPPM=1
warn "Android NDK not found, it will be installed via uppm."
"$UPPM" install "$UPPM_PACKAGE_NAME_NDK"

# https://github.com/microsoft/WSL/issues/8681
# https://github.com/microsoft/WSL/issues/4071
if [ "$NATIVE_OS_KIND" = linux ] && grep -q -i Microsoft /proc/version ; then
patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 ~/.uppm/installed/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
fi
fi

ANDROID_NDK_HOME="$("$UPPM" info "$UPPM_PACKAGE_NAME_NDK" installed-dir)"
Expand Down

0 comments on commit e424b75

Please sign in to comment.