]> gitweb.factorcode.org Git - factor.git/blobdiff - build.sh
build.sh: getconf LONG_BIT finds word size without C/C++.
[factor.git] / 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() {