diff options
author | raisinten <raisinten@gmail.com> | 2020-11-14 18:20:03 +0300 |
---|---|---|
committer | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2020-11-19 21:33:28 +0300 |
commit | 2d167f0dc785f68272d9f7f8a5ad8e64fc71cc70 (patch) | |
tree | 1b97b3fe664e96170464d9a84d41c422a1406420 /android-configure | |
parent | 3e0194e88e8d61416ef1c46ff03b348294f3d868 (diff) |
build: replace which with command -v
PR-URL: https://github.com/nodejs/node/pull/36118
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'android-configure')
-rwxr-xr-x | android-configure | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android-configure b/android-configure index a7cb2b9c8b4..e3f4a721827 100755 --- a/android-configure +++ b/android-configure @@ -50,8 +50,8 @@ esac HOST_OS="linux" HOST_ARCH="x86_64" -export CC_host=$(which gcc) -export CXX_host=$(which g++) +export CC_host=$(command -v gcc) +export CXX_host=$(command -v g++) host_gcc_version=$($CC_host --version | grep gcc | awk '{print $NF}') major=$(echo $host_gcc_version | awk -F . '{print $1}') |