]> git.ipfire.org Git - thirdparty/gcc.git/commit - Makefile.tpl
Makefile.tpl: Avoid race condition in generating site.exp from the top level
authorLewis Hyatt <lhyatt@gmail.com>
Thu, 16 Nov 2023 16:18:37 +0000 (11:18 -0500)
committerLewis Hyatt <lhyatt@gmail.com>
Sun, 19 Nov 2023 16:07:09 +0000 (11:07 -0500)
commit56ca59a03150cf44cea340f58967c990ed6bf43c
treefb29e3e384d3ca147f23a90544d1de52d25eaab2
parent78d132d73ec3784a77b3e2391a540bcdae714bb0
Makefile.tpl: Avoid race condition in generating site.exp from the top level

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.in
Makefile.tpl