[m-rev.] diff: parallelize install_grades rule

Keri Harris keri at gentoo.org
Mon Oct 23 12:20:36 AEST 2006


scripts/Mmake.rules

pass MMAKEFLAGS to 'mmake $*.depend' and 'mmake lib$*.install_library' when 
running install_grades. This provides a mechanism for speeding up compile 
times on SMP boxes.

Index: scripts/Mmake.rules
===================================================================
RCS file: /home/mercury1/repository/mercury/scripts/Mmake.rules,v
retrieving revision 1.150
diff -u -B -r1.150 Mmake.rules
--- scripts/Mmake.rules	24 Feb 2006 07:11:20 -0000	1.150
+++ scripts/Mmake.rules	23 Oct 2006 02:08:49 -0000
@@ -505,9 +505,9 @@
 		*.a *.so tmp_dir || true; } && \
 	for grade in $(ALL_LIBGRADES); do \
 		if [ "$$grade" != "$(GRADE)" ]; then \
-			$(MMAKE) GRADE=$$grade $*.depend || \
+			$(MMAKE) $(MMAKEFLAGS) GRADE=$$grade $*.depend || \
 				exit 1; \
-			$(MMAKE) GRADE=$$grade lib$*.install_library || \
+			$(MMAKE) $(MMAKEFLAGS) GRADE=$$grade lib$*.install_library || \
 				exit 1; \
 			for file in x $$grade_files; do \
 				if [ "$$file" != "x" ]; then \


Keri

-- 
Keri Harris - Gentoo Developer
Public Key:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xA128F5ED
Key fingerprint = 1690 30DA 4950 E710 A871 07D7 AF04 BFB6 A138 F5ED
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20061023/6431d0b5/attachment.sig>


More information about the reviews mailing list