diff options
author | raisinten <raisinten@gmail.com> | 2020-11-14 18:20:03 +0300 |
---|---|---|
committer | Beth Griggs <bgriggs@redhat.com> | 2020-12-15 23:15:24 +0300 |
commit | 699bb348d95c0b4078e542dee6efe9d54748c445 (patch) | |
tree | 5f7dc9aca9714614e04267cdebcd8290641ec533 /android-configure | |
parent | d27e56356bb62bacf74965e441030faeeec2b24c (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}') |