# std: always allow spawning processes when an env map is explicitly provided \(\#25092\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/5bf52a6f50a9fa0380499dd38a9826fc39c43f11)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 5bf52a6f50a9fa0380499dd38a9826fc39c43f11

Requested commit: 5bf52a6f50a9fa0380499dd38a9826fc39c43f11

Commit: 5bf52a6f50a9fa0380499dd38a9826fc39c43f11

Tree: dabb61650c578de79f2fa07128e5a80b334ae5b1

Author: Carter Snook

Committer: GitHub

## Message

```
std: always allow spawning processes when an env map is explicitly provided (#25092)

In a library, the two `builtin.link_libc` and `builtin.output_mode ==
.Exe` checks could both be false. Thus, you would get a compile error
even if you specified an `env_map` at runtime. This change turns the
compile error into a runtime panic and updates the documentation to
reflect the runtime requirement.
```

## Parents

- [bc512648dbb27d895e69857202b22bc34d27f122](https://git.cafe/gitcafe/zig/commit/bc512648dbb27d895e69857202b22bc34d27f122?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/5bf52a6f50a9fa0380499dd38a9826fc39c43f11?format=markdown)
