Skip to content

Commit

Permalink
Provide Windows error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Froxcey committed Jan 31, 2024
1 parent 37f7b8b commit e607a82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ const build_facilio = @import("facil.io/build.zig").build_facilio;

pub fn build(b: *std.build.Builder) !void {
const target = b.standardTargetOptions(.{});
if (target.getOsTag() == .windows)
@panic("Facil (and Zap) doesn't support Windows, at least not currently. Try targeting Linux and using WSL\n");
// Standard release options allow the person running `zig build` to select
// between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall.
const optimize = b.standardOptimizeOption(.{});
Expand Down

0 comments on commit e607a82

Please sign in to comment.