aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread.zig
diff options
context:
space:
mode:
authorominitay <37453713+ominitay@users.noreply.github.com>2022-01-30 13:22:49 +0000
committerVeikka Tuominen <git@vexu.eu>2022-02-14 22:44:17 +0200
commit7b938767bb18535a870d0460c9f4d9e3d93ab053 (patch)
treef885eeb9b7a76e02a8fa1c086eb0cfa696a6819d /lib/std/Thread.zig
parent1e49d1fca89a0fce1604a8188257fa6ea2749338 (diff)
downloadzig-7b938767bb18535a870d0460c9f4d9e3d93ab053.tar.gz
zig-7b938767bb18535a870d0460c9f4d9e3d93ab053.zip
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.
Diffstat (limited to 'lib/std/Thread.zig')
0 files changed, 0 insertions, 0 deletions