# std.os: throw compile error for \`argv\` on Windows · gitcafe/zig

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

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

Visibility: public

Requested revision: 7b938767bb18535a870d0460c9f4d9e3d93ab053

Requested commit: 7b938767bb18535a870d0460c9f4d9e3d93ab053

Commit: 7b938767bb18535a870d0460c9f4d9e3d93ab053

Tree: f885eeb9b7a76e02a8fa1c086eb0cfa696a6819d

Author: ominitay

Committer: Veikka Tuominen

## Message

```
std.os: throw compile error for `argv` on Windows

On Windows, `argv` is not populated by start code, and instead left as undefined. This is problematic, and can lead to incorrect programs compiling, but panicking when trying to access `argv`. This change causes these programs to produce a compile error on Windows instead, which is far preferable to a runtime panic.

```

## Parents

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

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