core: basic Linux structure
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
c66cd31b99
commit
cd85a2d623
3 changed files with 99 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue