core: add @panic when target is wasm

This commit is contained in:
Henry Lee 2023-04-17 20:09:58 +01:00 committed by Stephen Gutekanst
parent 598f049533
commit 90e4e0ae3d

View file

@ -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();
}