Adding BHL_MAX_THREADS property support

This commit is contained in:
Pavel Shevaev 2022-10-19 20:14:15 +03:00
parent 1b002fb0ce
commit 170493979c
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ function bhl_run_ex($bhl_inc_dir, array $bhl_files, $result_file, $debug = true,
"--tmp-dir=$GAME_ROOT/build/bhl/ " .
"--error=$GAME_ROOT/build/bhl.error " .
"--deterministic " .
"--threads=" . (is_win() ? 1 : 4) . " " .
"--threads=" . getor("BHL_MAX_THREADS", is_win() ? 1 : 4) . " " .
($debug ? " -d" : "") . " " .
($force ? " -C" : "") . " ".
(!$check_deps ? " -N" : "") . " ",