lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master d5deb37 3/4: Forbid parallelism within the to


From: Greg Chicares
Subject: [lmi-commits] [lmi] master d5deb37 3/4: Forbid parallelism within the top-level makefile
Date: Fri, 24 May 2019 09:41:08 -0400 (EDT)

branch: master
commit d5deb378665e0849761cebdb58d0425ea3263c22
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Forbid parallelism within the top-level makefile
    
    Some online discussion had suggested adding a '.NOTPARALLEL' target
    to makefiles that use '$(eval include)'. That seems unnecessary: make
    cannot parallelize the way it reads makefiles. However, it seems like
    a good idea anyway, for cases such as
      make install clean
    Testing this change, using '--jobs=32', with
      install_msw.sh  [which invokes make with many jobs], and
      make unit_tests [which runs all tests in parallel]
    showed no difference in run times.
---
 GNUmakefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/GNUmakefile b/GNUmakefile
index 53450f5..360aece 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -64,6 +64,11 @@ $(MAKECMDGOALS):
 
 .DELETE_ON_ERROR:
 
+# Process this makefile serially, but pass any '--jobs=' parameter to
+# submakefiles.
+
+.NOTPARALLEL:
+
 # Suppress default rules. Instead, specify all desired rules
 # explicitly.
 #



reply via email to

[Prev in Thread] Current Thread [Next in Thread]