zig build: FileNotFound when lib.ofmt = .c #13407
Labels
backend-c
The C backend (CBE) outputs C source code.
bug
Observed behavior contradicts documented or intended behavior
zig build system
std.Build, the build runner, `zig build` subcommand, package management
Milestone
Zig Version
0.11.0-dev.12+ebf9ffd34
Steps to Reproduce and Observed Behavior
In build.zig:
Then run
zig build
.Output
The generated C file is correctly placed, but
zig.h
is not.Expected Behavior
No error trace, and
zig.h
is next to the generated C fileIf I understand, it's trying to copy
$PREFIX/lib/zig/include/zig.h
to the output directory from the wrong location. Manually copying the file is a workaround.Related: #12965 (duplicate?), #12968 (does not fix), #11643
The text was updated successfully, but these errors were encountered: