Skip to content

Commit

Permalink
Merge pull request #109 from yuxianzhi/patch-23
Browse files Browse the repository at this point in the history
fix PATH setting order bug
  • Loading branch information
jianfeifeng authored May 19, 2022
2 parents 4eec910 + 57a09c4 commit 06549a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/setup_compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ setAndroidNDK() {
fi
if [[ "${INNER_ANDROID_NDK_ROOT}" != "" ]]; then
if [[ ${host} =~ macos ]]; then
export PATH=$PATH:${INNER_ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/darwin-x86_64/bin
export PATH=${INNER_ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/darwin-x86_64/bin:$PATH
elif [[ ${host} =~ windows ]]; then
export PATH=$PATH:${INNER_ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/windows-x86_64/bin
export PATH=${INNER_ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/windows-x86_64/bin:$PATH
else
export PATH=$PATH:${INNER_ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/linux-x86_64/bin
export PATH=${INNER_ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH
fi
fi
}
Expand Down

0 comments on commit 06549a5

Please sign in to comment.