core: basic Linux structure

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-08-25 18:57:34 -07:00
parent c66cd31b99
commit cd85a2d623
3 changed files with 99 additions and 1 deletions

View file

@ -267,6 +267,7 @@ pub fn build(b: *std.Build) !void {
pub const Platform = enum {
wasm,
linux,
windows,
darwin,
null,
@ -275,6 +276,7 @@ pub const Platform = enum {
if (target.cpu.arch == .wasm32) return .wasm;
if (target.os.tag.isDarwin()) return .darwin;
if (target.os.tag == .windows) return .windows;
if (target.os.tag == .linux) return .linux;
return .null;
}
};