File: make-3.82-parallel-build.patch

package info (click to toggle)
qtwebkit-opensource-src 5.7.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 291,692 kB
  • ctags: 268,122
  • sloc: cpp: 1,360,420; python: 70,286; ansic: 42,986; perl: 35,476; ruby: 12,236; objc: 9,465; xml: 8,396; asm: 3,873; yacc: 2,397; sh: 1,647; makefile: 650; lex: 644; java: 110
file content (26 lines) | stat: -rw-r--r-- 1,221 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff -u make-3.82-orig/remake.c make-3.82/remake.c
--- make-3.82-orig/remake.c	2010-07-13 03:20:42.000000000 +0200
+++ make-3.82/remake.c	2012-03-21 12:47:52.000000000 +0100
@@ -301,7 +301,7 @@
       /* Check for the case where a target has been tried and failed but
          the diagnostics hasn't been issued. If we need the diagnostics
          then we will have to continue. */
-      if (!(f->updated && f->update_status > 0 && !f->dontcare && f->no_diag))
+      if (!(f->updated && f->update_status > 0 && !f->dontcare && f->no_diag) && f->command_state!=cs_not_started )
         {
           DBF (DB_VERBOSE, _("Pruning file `%s'.\n"));
           return f->command_state == cs_finished ? f->update_status : 0;
@@ -614,6 +614,12 @@
                 d->file->dontcare = file->dontcare;
               }
 
+	    /* We may have already encountered this file earlier in the same
+	     * pass before we knew we'd be updating this target. In that 
+	     * case calling update_file now would result in the file being 
+	     * inappropriately pruned so we toggle the considered bit back 
+	     * off first. */
+            d->file->considered = !considered;
 
 	    dep_status |= update_file (d->file, depth);