translate-c build step causing crash in build system #20648
Labels
bug
Observed behavior contradicts documented or intended behavior
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
frontend
Tokenization, parsing, AstGen, Sema, and Liveness.
regression
It worked in a previous version of Zig, but stopped working.
Milestone
Zig Version
0.14.0-dev.321+888708ec8
Steps to Reproduce and Observed Behavior
Use a translate-c build step in a build script:
Expected Behavior
No crash.
Regression caused by #20580
Related to #20630
The panic happens because the frontend fails to report file system inputs in the translate-c logic. This is a bug in the frontend, not the build system.
Should be an easy fix, just need to send a non-empty
file_system_inputs
message here:zig/src/main.zig
Line 4089 in 888708e
The text was updated successfully, but these errors were encountered: