# wasi.c: report no environment variables available · gitcafe/zig

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

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

Visibility: public

Requested revision: dff45c266e6c6103ab324c4771a21d5b52ef85ba

Requested commit: dff45c266e6c6103ab324c4771a21d5b52ef85ba

Commit: dff45c266e6c6103ab324c4771a21d5b52ef85ba

Tree: fa0217d5f98dde74d2476d92d3fecf6f617e78a7

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
wasi.c: report no environment variables available

I moved part of the compiler that checks environment variables to the
standard library, so it doesn't have access to `build_options.only_c`
anymore, which means some environment variable checks are leaking into
the zig1.wasm build of zig. This logic still makes it return "no
environment variables found" though.

```

## Parents

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

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