-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
zig run should perform an execve on operating systems that support it #6531
Copy link
Copy link
Closed
Labels
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.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.frontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.
Milestone
Metadata
Metadata
Assignees
Labels
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.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.frontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.
This is a minor regression introduced from #6250.
zig runandzig testrun the binary as a child process. Instead, on operating systems that support it, they should perform anexecve, which is more resource-efficient and has nicer properties when using zig as a child process for these use cases.zig/src/main.zig
Lines 1684 to 1687 in 52ba2c3