[jhalfs] 02/03: blfs tools: update JOBS for the new config

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.automated
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch xry111/parallelism
in repository jhalfs.

commit d18fc24d5be19579426b6da1f5db75beb3d9a6da
Author: Pierre Labastie <[email protected]>
AuthorDate: Fri Nov 17 13:57:15 2023 +0100

    blfs tools: update JOBS for the new config
    
    Now, we have ALL_CORES set to y or n, and depending on this,
    we want either JOBS to be set to $(nproc) or to the value
    of N_PARALLEL.
---
 common/libs/func_install_blfs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/libs/func_install_blfs b/common/libs/func_install_blfs
index 8a87b1b..4261932 100644
--- a/common/libs/func_install_blfs
+++ b/common/libs/func_install_blfs
@@ -136,7 +136,7 @@ STATS=n
 SRC_ARCHIVE=/sources
 BUILD_ROOT=/sources
 BUILD_SUBDIRS=y
-JOBS=$(if [ -n "$N_PARALLEL" ]; then echo $N_PARALLEL; else echo 1; fi)
+JOBS=$(if [ "$ALL_CORES" = y ]; then nproc; else echo $N_PARALLEL; fi)
 EOF
 for OPT_VAR in CFLAGS CXXFLAGS LDFLAGS; do
   eval optVal=\$${OPT_VAR}_$DEF_OPT_MODE

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.