take away EmitOption.emit_to option and make it give a FileSource
andrewrk opened this issue · 1 comments
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.
Is there anything blocking this? If not, I'm willing to implement this in the same PR I am working on for #15156.