]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - easy-builder
radiant/build menu: reword Commandline as Command line
[xonotic/netradiant.git] / easy-builder
index 845d2c7ca2e29f5a1e28fcf185fc6a5c923d4c8e..fb7cabc83bbeec7fab0089b8bfd6d0412bc80d09 100755 (executable)
@@ -25,9 +25,13 @@ _nproc () {
                        'Linux')
                                egrep "^processor" /proc/cpuinfo | wc -l
                                ;;
-                       'FreeBSD'|'Darwin')
+                       'FreeBSD')
                                sysctl -n hw.ncpu
                                ;;
+                       'Darwin')
+                               sysctl -n hw.logicalcpu \
+                               || sysctl -n hw.ncpu
+                               ;;
                        'MSYS_NT-'*|'CYGWIN_NT-'*|'MINGW'*'_NT-'*)
                                if command -v 'wmic' >/dev/null
                                then
@@ -79,7 +83,7 @@ done
 
 case "$(uname -s)" in
        'Darwin')
-               cmake_user_opts[${#cmake_user_opts[@]}]='-DBUILTIN_GTKGLEXT=ON'
+               cmake_user_opts[${#cmake_user_opts[@]}]='-DBUILTIN_GTKGLEXT=ON -DBUILTIN_GTKTHEME_MOJAVE=ON'
                ;;
 esac