take away EmitOption.emit_to option and make it give a FileSource #14971
Labels
breaking
Implementing this issue could cause existing code to no longer compile or have different behavior.
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
zig build system
std.Build, the build runner, `zig build` subcommand, package management
Milestone
Extracted from #14647.
zig/lib/std/Build/CompileStep.zig
Lines 55 to 64 in 68c7261
zig/lib/std/Build/CompileStep.zig
Lines 295 to 309 in 68c7261
All of these, including
emit_h
, will no longer have the option to specify an output path, same as #14951. Instead, the two choices will be null, or providing a FileSource to interact with the rest of the build system. The zig compiler itself will only ever see -femit-foo or -fno-emit-foo. It will always put the artifact in the cache directory, and the build script must rely on other steps that interact with FileSource to do anything with the artifacts.The text was updated successfully, but these errors were encountered: