From: Doug Coleman Date: Mon, 21 Dec 2020 05:07:21 +0000 (-0600) Subject: build.sh: getconf LONG_BIT finds word size without C/C++. X-Git-Tag: 0.99~2619 X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=commitdiff_plain;h=a15d827eb9cbb885a8d24f6568ab86f7dea1ca21 build.sh: getconf LONG_BIT finds word size without C/C++. --- diff --git a/build.sh b/build.sh index 86aeea9645..ac957f70de 100755 --- a/build.sh +++ b/build.sh @@ -329,7 +329,7 @@ find_num_cores() { find_word_size() { if [[ -n $WORD ]] ; then return; fi $ECHO "Finding WORD..." - WORD=$(find_word_size_cpp || find_word_size_c) + WORD=$(getconf LONG_BIT || find_word_size_cpp || find_word_size_c) } find_word_size_cpp() {