Zig static library missing line info in traces

I’m building a zig static library on macOS and linking int against an executable. It looks like none of the stack frames coming from the library have line info.

Example:

$ zig build run_zig

6
thread 1792043 panic: TEST
???:?:?: 0x1045247cb in _foo (???)
/Users/vkuksa/projects/learning/zig/entry_c/entry.zig:4:8: 0x10464a397 in main (zig_test)
foo(6);
^
/Users/vkuksa/zig/zig-aarch64-macos-0.15.2/lib/std/start.zig:618:22: 0x10464a2bf in main (zig_test)
root.main();
^
???:?:?: 0x197a19d53 in ??? (???)
???:?:?: 0x0 in ??? (???)
run_zig
└─ run exe zig_test failure
error: the following command terminated unexpectedly:
./.zig-cache/o/8b0473487912b31395f31bb413df11bb/zig_test

I expected to get something like /path/to/root.zig:4:8 instead of ???:?:?

Here is a minimal project to repro this problem: https://codeberg.org/vkuksa/zig-missing-line-info

Is there anything I am doing wrong in my build.zig?

Edit: my zig version is 0.15.2