From 90e4e0ae3ded70978f109c5e936e8905ab3ab99c Mon Sep 17 00:00:00 2001 From: Henry Lee Date: Mon, 17 Apr 2023 20:09:58 +0100 Subject: [PATCH] core: add @panic when target is wasm --- libs/core/sdk.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/core/sdk.zig b/libs/core/sdk.zig index e0600482..b049d132 100644 --- a/libs/core/sdk.zig +++ b/libs/core/sdk.zig @@ -209,6 +209,9 @@ pub fn Sdk(comptime deps: anytype) type { } pub fn run(app: *const App) *std.build.RunStep { + if (app.platform == .web) { + @panic("cannot run wasm binary; use mach app instead"); + } return app.step.run(); }