Skip to content
Snippets Groups Projects
  • Lewis Hyatt's avatar
    56ca59a0
    Makefile.tpl: Avoid race condition in generating site.exp from the top level · 56ca59a0
    Lewis Hyatt authored
    A command like "make -j 2 check-gcc-c check-gcc-c++" run in the top level of
    a fresh build directory does not work reliably. That will spawn two
    independent make processes inside the "gcc" directory, and each of those
    will attempt to create site.exp if it doesn't exist and will interfere with
    each other, producing often a corrupted or empty site.exp. Resolve that by
    making these targets depend on a new phony target which makes sure site.exp
    is created first before starting the recursive makes.
    
    ChangeLog:
    
    	* Makefile.in: Regenerate.
    	* Makefile.tpl: Add dependency on site.exp to check-gcc-* targets
    56ca59a0
    History
    Makefile.tpl: Avoid race condition in generating site.exp from the top level
    Lewis Hyatt authored
    A command like "make -j 2 check-gcc-c check-gcc-c++" run in the top level of
    a fresh build directory does not work reliably. That will spawn two
    independent make processes inside the "gcc" directory, and each of those
    will attempt to create site.exp if it doesn't exist and will interfere with
    each other, producing often a corrupted or empty site.exp. Resolve that by
    making these targets depend on a new phony target which makes sure site.exp
    is created first before starting the recursive makes.
    
    ChangeLog:
    
    	* Makefile.in: Regenerate.
    	* Makefile.tpl: Add dependency on site.exp to check-gcc-* targets
Makefile.tpl 76.25 KiB