]> gitweb.factorcode.org Git - factor.git/commitdiff
build.sh: getconf LONG_BIT finds word size without C/C++.
authorDoug Coleman <doug.coleman@gmail.com>
Mon, 21 Dec 2020 05:07:21 +0000 (23:07 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 19 Feb 2021 18:18:31 +0000 (12:18 -0600)
build.sh

index 86aeea9645ceef9c44c973c6175b62b00aa6e2a1..ac957f70def23b1ef50f7289d59f0b5a90299414 100755 (executable)
--- 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() {