diff --git a/build.sh b/build.sh index 1a2d1c8a0..9806d770d 100755 --- a/build.sh +++ b/build.sh @@ -4,4 +4,16 @@ # file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html set -eu -o pipefail -./util/build.sh --disable-tests $@ + +# run correct build script for detected OS +if [[ "$OSTYPE" == "linux-gnu"* ]]; then + ./util/build.sh --disable-tests $@ +elif [[ "$OSTYPE" == "darwin"* ]]; then + ./util/build-mac.sh --disable-tests $@ +elif [[ "$OSTYPE" == "msys"* ]]; then + ./util/build-win.sh --disable-tests $@ +#elif [[ "$OSTYPE" == "freebsd"* ]]; then + # placeholder +else + echo "Unable to detect your OS. What are you using?" +fi diff --git a/src/init.cpp b/src/init.cpp index 1dda35e1c..f5ea421c7 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -377,6 +377,7 @@ std::string HelpMessage(HelpMessageMode mode) strUsage += HelpMessageOpt("-exportdir=", _("Specify directory to be used when exporting data")); strUsage += HelpMessageOpt("-dbcache=", strprintf(_("Set database cache size in megabytes (%d to %d, default: %d)"), nMinDbCache, nMaxDbCache, nDefaultDbCache)); strUsage += HelpMessageOpt("-loadblock=", _("Imports blocks from external blk000??.dat file") + " " + _("on startup")); + strUsage += HelpMessageOpt("-maxdebugfilesize=", strprintf(_("Set the max size of the debug.log file (default: %u)"), 15)); strUsage += HelpMessageOpt("-maxorphantx=", strprintf(_("Keep at most unconnectable transactions in memory (default: %u)"), DEFAULT_MAX_ORPHAN_TRANSACTIONS)); strUsage += HelpMessageOpt("-mempooltxinputlimit=", _("[DEPRECATED/IGNORED] Set the maximum number of transparent inputs in a transaction that the mempool will accept (default: 0 = no limit applied)")); strUsage += HelpMessageOpt("-par=", strprintf(_("Set the number of script verification threads (%u to %d, 0 = auto, <0 = leave that many cores free, default: %d)"),