cmake: restore parallel build support for bootstrap
[openwrt/openwrt.git] / tools / cmake / patches / 150-bootstrap_parallel_make_flag.patch
1 --- a/bootstrap
2 +++ b/bootstrap
3 @@ -958,7 +958,10 @@ int main(){ printf("1%c", (char)0x0a); r
4 ' > "test.c"
5 cmake_original_make_flags="${cmake_make_flags}"
6 if [ "x${cmake_parallel_make}" != "x" ]; then
7 - cmake_make_flags="${cmake_make_flags} -j ${cmake_parallel_make}"
8 + case "$cmake_paralle_make" in
9 + [0-9]*) cmake_parallel_make="-j ${cmake_parallel_make}";;
10 + esac
11 + cmake_make_flags="${cmake_make_flags} ${cmake_parallel_make}"
12 fi
13 for a in ${cmake_make_processors}; do
14 if [ -z "${cmake_make_processor}" ] && cmake_try_make "${a}" "${cmake_make_flags}" >> ../cmake_bootstrap.log 2>&1; then