VirtualBox

Ignore:
Timestamp:
Jun 17, 2012 8:45:31 PM (12 years ago)
Author:
bird
Message:

kmk: Merged in changes from GNU make 3.82. Previous GNU make base version was gnumake-2008-10-28-CVS.

Location:
trunk/src/kmk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk

    • Property svn:ignore
      •  

        old new  
        1313stamp-*
        1414makebook*
         15
        1516.*gdbinit
         17.gdb_history
         18
        1619*.dep
        1720*.dvi
         
        3134*.pg
        3235*.pgs
         36
        3337README
        3438README.DOS
        3539README.W32
         40README.OS2
        3641aclocal.m4
        3742autom4te.cache
         
        5257config.h.W32
        5358config.h-vms
         59
        5460loadavg
        5561loadavg.c
        5662make
         63
        5764.deps
        5865.dep_segment
         66ID
         67TAGS
         68
        5969_*
        6070sun4
         
        7282sol2
        7383i486-linux
         84
        7485customs
         86
        7587install-sh
        7688mkinstalldirs
         89
         90.directive.asc
  • trunk/src/kmk/tests

    • Property svn:ignore
      --- 
      +++ 
      
  • trunk/src/kmk/tests/scripts/features/parallelism

    r2186 r2591  
    4444              "ONE.inc\nTHREE.inc\nTWO.inc\nONE\nTHREE\nTWO\nsuccess\n");
    4545
    46 unlink('1.inc', '2.inc');
     46rmfiles(qw(1.inc 2.inc));
    4747
    4848
     
    6363              "ONE.inc\nTHREE.inc\nTWO.inc\nONE\nTHREE\nTWO\nsuccess\n");
    6464
    65 unlink('1.inc', '2.inc');
     65rmfiles(qw(1.inc 2.inc));
    6666
    6767# Grant Taylor reports a problem where tokens can be lost (not written back
     
    153153.PHONY: phony
    154154phony: ; : phony', '-rR -j', ': phony');
    155 unlink('target');
    156 
     155rmfiles('target');
     156
     157# TEST #10: Don't put --jobserver-fds into a re-exec'd MAKEFLAGS.
     158# We can't test this directly because there's no way a makefile can
     159# show the value of MAKEFLAGS we were re-exec'd with.  We can intuit it
     160# by looking for "disabling jobserver mode" warnings; we should only
     161# get one from the original invocation and none from the re-exec.
     162# See Savannah bug #18124
     163
     164run_make_test(q!
     165-include inc.mk
     166recur:
     167#       @echo 'MAKEFLAGS = $(MAKEFLAGS)'
     168        @rm -f inc.mk
     169        @$(MAKE) -j2 -f #MAKEFILE# all
     170all:
     171#       @echo 'MAKEFLAGS = $(MAKEFLAGS)'
     172        @echo $@
     173inc.mk:
     174#       @echo 'MAKEFLAGS = $(MAKEFLAGS)'
     175        @echo 'FOO = bar' > $@
     176!,
     177              '--no-print-directory -j2', "#MAKE#[1]: warning: -jN forced in submake: disabling jobserver mode.\nall\n");
     178
     179rmfiles('inc.mk');
     180
     181if ($all_tests) {
     182    # Implicit files aren't properly recreated during parallel builds
     183    # Savannah bug #26864
     184
     185    # The first run works fine
     186    run_make_test(q!
     187%.bar: %.x foo.y ; cat $^ > $@
     188%.x: ; touch $@
     189foo.y: foo.y.in ; cp $< $@
     190foo.y.in: ; touch $@
     191!,
     192                  '-j2 main.bar',
     193                  "touch foo.y.in
     194touch main.x
     195cp foo.y.in foo.y
     196cat main.x foo.y > main.bar
     197rm main.x");
     198
     199    # Now we touch the .in file and make sure it still works
     200    touch('foo.y.in');
     201
     202    run_make_test(undef, '-j2 main.bar', "cp foo.y.in foo.y
     203touch main.x
     204cat main.x foo.y > main.bar
     205rm main.x");
     206
     207    # Clean up
     208    rmfiles(qw(foo.y foo.y.in main.bar));
     209}
     210
     211if ($all_tests) {
     212    # Jobserver FD handling is messed up in some way.
     213    # Savannah bug #28189
     214    # It doesn't look like that bug anymore but this is the code it runs
     215
     216    run_make_test(q!
     217ifdef EXTRA
     218vpath %.dst /
     219xxx.dst: ; true
     220yyy.dst: ; true
     221endif
     222
     223M := $(MAKE)
     224xx: ; $M --no-print-directory -j2 -f $(MAKEFILE_LIST) xxx.dst yyy.dst EXTRA=1
     225!,
     226                  '-j2',
     227                  '#MAKE#[1]: warning: -jN forced in submake: disabling jobserver mode.
     228true
     229true
     230');
     231}
    157232
    158233# Make sure that all jobserver FDs are closed if we need to re-exec the
     
    183258#               'bar');
    184259
    185 # unlink('dependfile', 'output');
     260# rmfiles(qw(dependfile output));
    186261
    187262
     
    189264# run_make_test(undef, '-j2 recurse INCL=false', 'bar');
    190265
    191 # unlink('dependfile', 'output');
     266# rmfiles(qw(dependfile output));
    192267
    1932681;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette