]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
benchtests: Create objdir in the bench-%.c generation rule master
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 28 Jul 2026 14:27:33 +0000 (11:27 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 28 Jul 2026 16:27:49 +0000 (13:27 -0300)
The $(objpfx)bench-%.c rule writes its output into $(objpfx) without
ensuring that directory exists.  Serial builds happened to satisfy
that ordering, with parallel builds the generation recipe can
run before the directory is created, failing with:

  cannot create .../benchtests/bench-xxx.c-tmp: Directory nonexistent

Add the standard $(make-target-directory).

Reviewed-by: Florian Weimer <fweimer@redhat.com>
benchtests/Makefile

index f407e492cb77d68443c6b94425d5cce089dfa49c..16cc951d1953316a1587761fe1d8c7ab852bdfb1 100644 (file)
@@ -622,6 +622,7 @@ $(bench-link-targets): %: %.o $(objpfx)json-lib.o \
 $(bench-link-targets): LDFLAGS += $(link-bench-bind-now)
 
 $(objpfx)bench-%.c: %-inputs $(bench-deps)
+       $(make-target-directory)
        { if [ -n "$($*-INCLUDE)" ]; then \
          cat $($*-INCLUDE); \
        fi; \