]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix parallel bootstrap on MS-Windows in lib/ and lisp/.
authorEli Zaretskii <eliz@gnu.org>
Tue, 26 Jun 2012 16:57:54 +0000 (19:57 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 26 Jun 2012 16:57:54 +0000 (19:57 +0300)
 lib/makefile.w32-in ($(GNULIBOBJS)): Depend on stamp_BLD.  This
 replaces separate dependency for each object file, which required
 the same object file to be mentioned twice, causing failures in
 parallel builds.
 lisp/makefile.w32-in (compile, compile-always): Depend on
 update-subdirs, not on subdirs.el.  Otherwise, several different
 sub-targets of 'bootstrap' running in parallel could
 simultaneously write to subdirs.el, producing a garbled file.

ChangeLog
lib/makefile.w32-in
lisp/ChangeLog
lisp/makefile.w32-in

index 5e30b57092275fc307f4065a2b9f3e0e64232cc9..0a2fb8b04db9266519b62ad7b4fdca4660e6901b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-06-26  Eli Zaretskii  <eliz@gnu.org>
+
+       * lib/makefile.w32-in ($(GNULIBOBJS)): Depend on stamp_BLD.  This
+       replaces separate dependency for each object file, which required
+       the same object file to be mentioned twice, causing failures in
+       parallel builds.
+
 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
 
        Clean out last vestiges of the old HAVE_CONFIG_H stuff.
index 92fd7a81848b86f1d8fa0ca765041bc2c57c014e..78a0de0a0ef39f69bd49074310fcb950021f5bcd 100644 (file)
@@ -183,10 +183,7 @@ $(BLD)/filemode.$(O) : \
 # The following dependencies are for supporting parallel builds, where
 # we must make sure $(BLD) exists before any compilation starts.
 #
-$(BLD)/dtoastr.$(O) $(BLD)/getopt.$(O) $(BLD)/getopt1.$(O): stamp_BLD
-$(BLD)/strftime.$(O) $(BLD)/time_r.$(O) $(BLD)/md5.$(O): stamp_BLD
-$(BLD)/sha1.$(O) $(BLD)/sha256.$(O) $(BLD)/sha512.$(O): stamp_BLD
-$(BLD)/filemode.$(O): stamp_BLD
+$(GNULIBOBJS): stamp_BLD
 
 #
 # Headers we would preprocess if we could.
index 701dae6c4ef424954bdfacdea6d40dba7c9ce5b9..144446a0d024878905ed618cbfb4df6257674714 100644 (file)
@@ -1,3 +1,10 @@
+2012-06-26  Eli Zaretskii  <eliz@gnu.org>
+
+       * makefile.w32-in (compile, compile-always): Depend on
+       update-subdirs, not on subdirs.el.  Otherwise, several different
+       sub-targets of 'bootstrap' running in parallel could
+       simultaneously write to subdirs.el, producing a garbled file.
+
 2012-06-26  Sam Steingold  <sds@gnu.org>
 
        * files.el (file-name-base): New convenience function.
index 91a25b7c071aec4dff432fd4d76367db4131a069..0c021cec779cd55436a73a17db3401cb8fb5a77c 100644 (file)
@@ -311,7 +311,7 @@ TAGS-LISP-CMD: $(lisptagsfiles1) $(lisptagsfiles2) $(lisptagsfiles3) $(lisptagsf
 # compiled find the right files.
 
 # Need separate version for sh and native cmd.exe
-compile: $(lisp)/subdirs.el compile-$(SHELLTYPE) doit
+compile: update-subdirs compile-$(SHELLTYPE) doit
 
 compile-CMD: autoloads
 #      -for %%f in ($(lisp) $(WINS)) do for %%g in (%%f\*.elc) do @attrib -r %%g
@@ -340,7 +340,7 @@ compile-SH: autoloads
 # unconditionally.  Some files don't actually get compiled because they
 # set the local variable no-byte-compile.
 
-compile-always: $(lisp)/subdirs.el compile-always-$(SHELLTYPE) doit
+compile-always: update-subdirs compile-always-$(SHELLTYPE) doit
 
 compile-always-CMD:
 #      -for %%f in ($(lisp) $(WINS)) do for %%g in (%%f\*.elc) do @attrib -r %%g