-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
breakingImplementing this issue could cause existing code to no longer compile or have different behavior.Implementing this issue could cause existing code to no longer compile or have different behavior.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.zig build systemstd.Build, the build runner, `zig build` subcommand, package managementstd.Build, the build runner, `zig build` subcommand, package management
Milestone
Description
Extracted from #14647.
Lines 24 to 27 in b4d58e9
| /// Set this to modify the current working directory | |
| /// TODO change this to a Build.Cache.Directory to better integrate with | |
| /// future child process cwd API. | |
| cwd: ?[]const u8, |
Lines 858 to 863 in b4d58e9
| if (self.cwd) |cwd| { | |
| child.cwd = b.pathFromRoot(cwd); | |
| } else { | |
| child.cwd = b.build_root.path; | |
| child.cwd_dir = b.build_root.handle; | |
| } |
Lines 58 to 63 in b4d58e9
| /// Set to change the current working directory when spawning the child process. | |
| cwd: ?[]const u8, | |
| /// Set to change the current working directory when spawning the child process. | |
| /// This is not yet implemented for Windows. See https://github.com/ziglang/zig/issues/5190 | |
| /// Once that is done, `cwd` will be deprecated in favor of this field. | |
| cwd_dir: ?fs.Dir = null, |
Metadata
Metadata
Assignees
Labels
breakingImplementing this issue could cause existing code to no longer compile or have different behavior.Implementing this issue could cause existing code to no longer compile or have different behavior.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.zig build systemstd.Build, the build runner, `zig build` subcommand, package managementstd.Build, the build runner, `zig build` subcommand, package management