core: separate entrypoint from core module
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
47eac0d0c5
commit
033ebb8551
8 changed files with 21 additions and 21 deletions
|
|
@ -1,6 +1,9 @@
|
|||
const builtin = @import("builtin");
|
||||
|
||||
pub usingnamespace @import("platform.zig").entry;
|
||||
pub usingnamespace if (builtin.cpu.arch == .wasm32)
|
||||
@import("platform/wasm/entry.zig")
|
||||
else
|
||||
@import("platform/native/entry.zig");
|
||||
|
||||
comptime {
|
||||
if (!builtin.is_test) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue