aboutsummaryrefslogtreecommitdiff
path: root/lib/std/build/RunStep.zig
AgeCommit message (Collapse)Author
2022-08-21std: fix EmulatableRunStepLuuk de Gram
Fixes a compilation error when using the `EmulatableRunStep` that is being generated from a step directly using `runEmulatable`.
2022-07-23Share logic between EmulatableRunStep & RunStepLuuk de Gram
2022-06-20test: introduce link(er) tests - builds on standalone testsJakub Konka
2022-05-11some fixes to the EnvMap HashContextJonathan Marler
2022-05-11Fix regression in RunStep.addPathDirRyan Liptak
`key` was never being given a value, caused by b83cea12f31feaa0aff9489d5f7bd6159d284567
2022-05-11Update usages of `process.getEnvMap` and change BufMap -> EnvMap where ↵Jonathan Marler
applicable # Conflicts: # lib/std/build/RunStep.zig
2022-04-29std: Do not allocate the result for ChildProcess.initJimmi Holst Christensen
Instead, just return ChildProcess directly. This structure does not require a stable address, so we can put it on the stack just fine. If someone wants it on the heap they should do. const proc = try allocator.create(ChildProcess); proc.* = ChildProcess.init(args, allocator);
2022-02-06Replace argvCmd with std.mem.joinCody Tapscott
2022-02-06Avoid depending on child process execution when not supported by host OSCody Tapscott
In accordance with the requesting issue (#10750): - `zig test` skips any tests that it cannot spawn, returning success - `zig run` and `zig build` exit with failure, reporting the command the cannot be run - `zig clang`, `zig ar`, etc. already punt directly to the appropriate clang/lld main(), even before this change - Native `libc` Detection is not supported Additionally, `exec()` and related Builder functions error at run-time, reporting the command that cannot be run
2022-01-24allow `expected_exit_code` to be `null`Lee Cannon
2021-11-30std lib API deprecations for the upcoming 0.9.0 releaseAndrew Kelley
See #3811
2021-11-16add print field to RunStepJonathan Marler
A new print field is added to RunStep that will control whether it prints the cmd before running it. By default it will be set to builder.verbose which means it will print only if builder.verbose is true.
2021-10-21distinguish between unexpected child process exit code and unclean exitJonathan Marler
This modifies the error for an unexpected exit code from the ChildProcess of RunStep to be UnexpectedExitCode rather than UncleanExit. This allows the handler of the error to distinguish between an error reported by the ChildProcess, and an error executing the ChildProcess, which is an important dinstinction when it comes to know what information to report to the user. For example, if you have a ChildProcess that you know reports its own errors, an unexpected exit code would mean the error is already reported, but an unclean exit would mean that child process was not able to report any error.
2021-10-04migrate from `std.Target.current` to `@import("builtin").target`Andrew Kelley
closes #9388 closes #9321
2021-08-24remove redundant license headers from zig standard libraryAndrew Kelley
We already have a LICENSE file that covers the Zig Standard Library. We no longer need to remind everyone that the license is MIT in every single file. Previously this was introduced to clarify the situation for a fork of Zig that made Zig's LICENSE file harder to find, and replaced it with their own license that required annual payments to their company. However that fork now appears to be dead. So there is no need to reinforce the copyright notice in every single file.
2021-07-27Add option to hide build command on compilation error to build_runner (#8513)Lee Cannon
Co-authored-by: Veikka Tuominen <git@vexu.eu>
2021-06-11make remaining enums in build.zig snake_caseVeikka Tuominen
2021-06-11Makes output path stuff more sane.Felix (xq) Queißner
2021-06-11Changes to .path instead of .getPathFn. Changes LibExeObjStep to also ↵Felix (xq) Queißner
provide FileSource.
2021-06-11Moves files to file-global struct layout.Felix (xq) Queißner