Clerk: fix @post file popping in src dirs

This commit is contained in:
Louis Gesbert 2024-01-16 15:56:18 +01:00
parent 6972de06ad
commit fcb7ef61ff

View File

@ -712,7 +712,7 @@ let gen_build_statements
reset but that shouldn't cause trouble. *)
Nj.build "post-test" ~inputs:[reference; test_out]
~implicit_in:["always"]
~outputs:[reference ^ "@post"]
~outputs:[(!Var.builddir / reference) ^ "@post"]
:: acc)
[] item.legacy_tests
in
@ -740,7 +740,8 @@ let gen_build_statements
~implicit_in:
("always"
:: List.map
(fun test -> legacy_test_reference test ^ "@post")
(fun test ->
(!Var.builddir / legacy_test_reference test) ^ "@post")
item.legacy_tests);
results;
]
@ -751,7 +752,8 @@ let gen_build_statements
~implicit_out:[srcv ^ "@test"]
~inputs:
(List.map
(fun test -> legacy_test_reference test ^ "@post")
(fun test ->
(!Var.builddir / legacy_test_reference test) ^ "@post")
item.legacy_tests);
results;
]