mirror of
https://github.com/mirror/make.git
synced 2026-08-29 18:58:01 +08:00
Force intermediate targets to be considered if their non-intermediate
parent needs to be remade. Fixes Savannah bug #30653.
This commit is contained in:
@@ -214,6 +214,23 @@ rm main.x");
|
||||
rmfiles(qw(foo.y foo.y.in main.bar));
|
||||
}
|
||||
|
||||
# Ensure intermediate/secondary files are not pruned incorrectly.
|
||||
# See Savannah bug #30653
|
||||
|
||||
utouch(-15, 'file2');
|
||||
utouch(-10, 'file4');
|
||||
utouch(-5, 'file1');
|
||||
|
||||
run_make_test(q!
|
||||
.INTERMEDIATE: file3
|
||||
file4: file3 ; @mv -f $< $@
|
||||
file3: file2 ; touch $@
|
||||
file2: file1 ; @touch $@
|
||||
!,
|
||||
'--no-print-directory -j2', "touch file3");
|
||||
|
||||
#rmfiles('file1', 'file2', 'file3', 'file4');
|
||||
|
||||
if ($all_tests) {
|
||||
# Jobserver FD handling is messed up in some way.
|
||||
# Savannah bug #28189
|
||||
|
||||
Reference in New Issue
Block a user