mirror of
https://github.com/ziglang/zig.git
synced 2024-11-17 01:23:54 +00:00
60cd11bd4b
It had the downside of running all the comptime blocks and resolving all the usingnamespaces of each system, when just trying to discover if the current system is a particular one. For Darwin, where it's nice to use `std.Target.current.isDarwin()`, this demonstrates the utility that #425 would provide.
5 lines
137 B
Zig
5 lines
137 B
Zig
const builtin = @import("builtin");
|
|
const std = @import("../std.zig");
|
|
pub usingnamespace std.c;
|
|
pub usingnamespace @import("bits.zig");
|