aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os/linux.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-10-23 18:43:24 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-10-23 19:09:49 -0400
commit17eb24a7e4b2bc5740dc15996acc4736833cb2a0 (patch)
tree7568873daeb3667768cee4a083a49acac2b53149 /lib/std/os/linux.zig
parentef62452363de75240b21299e9f80b4851433faaa (diff)
downloadzig-17eb24a7e4b2bc5740dc15996acc4736833cb2a0.tar.gz
zig-17eb24a7e4b2bc5740dc15996acc4736833cb2a0.zip
move types from builtin to std
* All the data types from `@import("builtin")` are moved to `@import("std").builtin`. The target-related types are moved to `std.Target`. This allows the data types to have methods, such as `std.Target.current.isDarwin()`. * `std.os.windows.subsystem` is moved to `std.Target.current.subsystem`. * Remove the concept of the panic package from the compiler implementation. Instead, `std.builtin.panic` is always the panic function. It checks for `@hasDecl(@import("root"), "panic")`, or else provides a default implementation. This is an important step for multibuilds (#3028). Without this change, the types inside the builtin namespace look like different types, when trying to merge builds with different target settings. With this change, Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one compilation and `std.builtin.Os` from another compilation are the same type, even if the target OS value differs.
Diffstat (limited to 'lib/std/os/linux.zig')
0 files changed, 0 insertions, 0 deletions