core: add @panic when target is wasm
This commit is contained in:
parent
598f049533
commit
90e4e0ae3d
1 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue