From c4d47abc528aab326c2e9ae7605996311bb7711b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jes=C3=BAs=20Garc=C3=ADa=20de=20Soria?= Date: Sat, 5 Apr 2025 07:46:55 +0100 Subject: [PATCH] Fix -j to export CMAKE_BUILD_PARALLEL_LEVEL. (#9195) The existing support to use a specified number of cores for compilation was setting the variable CMAKE_BUILD_PARALLEL_LEVEL but not exporting it, so CMake was not being affected, while the -1 option did work (as it was exporting the value). --- BuildLinux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BuildLinux.sh b/BuildLinux.sh index 44ed284427..382bdac733 100755 --- a/BuildLinux.sh +++ b/BuildLinux.sh @@ -49,7 +49,7 @@ while getopts ":1j:bcdghirsu" opt; do export CMAKE_BUILD_PARALLEL_LEVEL=1 ;; j ) - CMAKE_BUILD_PARALLEL_LEVEL=$OPTARG + export CMAKE_BUILD_PARALLEL_LEVEL=$OPTARG ;; b ) BUILD_DEBUG="1"