Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove --enable-cache option; std.Build.CompileStep: remove output_dir #15234

Merged
merged 4 commits into from
Apr 11, 2023

Conversation

andrewrk
Copy link
Member

std.Build.CompileStep: remove output_dir

Build scripts must instead use the FileSource abstraction rather than
telling the compiler directly where to output files.

CLI: remove --enable-cache option

This use case is now handled instead by the --listen option.

closes #14951
closes #15025
closes #15072

@andrewrk andrewrk added 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 labels Apr 10, 2023
@andrewrk andrewrk force-pushed the remove-legacy-build-api branch from a8a63f8 to 31b24a5 Compare April 11, 2023 01:12
This use case is now handled instead by the --listen option.

closes #15025
closes #15072
Build scripts must instead use the FileSource abstraction rather than
telling the compiler directly where to output files.

closes #14951
 * remove setName, setFilter, and setTestRunner. Please set these
   options directly when creating the CompileStep.
 * removed unused field
 * remove computeOutFileNames and inline the logic, making clear the
   goal of avoiding state mutations after the build step is created.
@andrewrk andrewrk force-pushed the remove-legacy-build-api branch from 31b24a5 to 3c3cee2 Compare April 11, 2023 15:53
@andrewrk andrewrk merged commit d3a237a into master Apr 11, 2023
@andrewrk andrewrk deleted the remove-legacy-build-api branch April 11, 2023 15:54
@Jarred-Sumner
Copy link
Contributor

Jarred-Sumner commented Apr 14, 2023

This use case is now handled instead by the --listen option.

Where is the --listen option documented?

image

Or otherwise, any pointers to where to look to cover the usecase of "I have a build step and I want to ensure that the output directory is this specific directory"?

Note that InstallArtifactStep does not cover the usecase:

thread 22906074 panic: Cannot install a .obj build artifact.
/Users/jarred/zig/0.11.0-dev.2571+31738de28/files/lib/std/Build/InstallArtifactStep.zig:30:21: 0x102e6a80b in create (build)
            .obj => @panic("Cannot install a .obj build artifact."),
                    ^
/Users/jarred/zig/0.11.0-dev.2571+31738de28/files/lib/std/Build.zig:1177:38: 0x102e177a7 in addInstallArtifact (build)
    return InstallArtifactStep.create(self, artifact);
                                     ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
2 participants