introduce build_runner.phase enum {configure, make} and assert the phase in many functions #14941
Labels
breaking
Implementing this issue could cause existing code to no longer compile or have different behavior.
zig build system
std.Build, the build runner, `zig build` subcommand, package management
Milestone
Extracted from #14647.
I've seen quite a bit of build.zig code in the wild that does inappropriate things, such as call make() during build(), or create steps during make(). This issue is to set a global enum state to which phase is currently happening, and enforce that the API is only used in the intended phase.
The text was updated successfully, but these errors were encountered: