With Zig 0.16, build --search-prefix parameter is not copied over to translate-c command line

When I add it to the build command line:

zig build --search-prefix $HOME --prefix $HOME

Then it is not added to the translate-c command:

/Users/vb/src/pEpEngineBackup/src/pEp.c:1:10: error: 'pEp/keymanagement.h' not found
#include <pEp/keymanagement.h>
         ^
error: 2 compilation errors
failed command: /opt/local/bin/zig translate-c --cache-dir .zig-cache --global-cache-dir /Users/vb/.cache/zig /Users/vb/src/pEpEngineBackup/src/pEp.c --listen=-

What can I do?

I would consider this a bug, because the –search-prefix option is not useful anymore until its results are automatically copied to the new translate-c command. But I found a work-around, which helps to get a working build back:

    translate_pEp.addSystemIncludePath(.{ .cwd_relative = b.h_dir });

This copies the result of –search-prefix manually for the header directory (only).

Filed a bug on https://codeberg.org/ziglang/zig/issues/32095