Skip to content

Commit

Permalink
Maybe fix wasi build.
Browse files Browse the repository at this point in the history
  • Loading branch information
fubark committed Apr 14, 2024
1 parent 0e01e3f commit 757fb90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ pub fn build(b: *std.build.Builder) !void {
.optimize = optimize,
});
if (exe.optimize != .Debug) {
exe.strip = true;
// Sometimes there are issues with strip for ReleaseFast + wasi.
if (opts.target.getOsTag() != .wasi) {
exe.strip = true;
}
}
exe.addIncludePath(.{ .path = thisDir() ++ "/src" });

Expand Down
1 change: 0 additions & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const cli = @import("cli.zig");
const cy_mod = @import("builtins/cy.zig");
const build_options = @import("build_options");
const fmt = @import("fmt.zig");
const ln = @import("linenoise");
comptime {
const lib = @import("lib.zig");
std.testing.refAllDecls(lib);
Expand Down

0 comments on commit 757fb90

Please sign in to comment.