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 Feb 12, 2024
1 parent 37f7b8b commit 1328bdf
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("\nCurrently, Facil.io and Zap are not compatible with Windows. Consider using Linux or Windows Subsystem for Linux (WSL) instead.\nFor more information, please see:\n- https://github.com/zigzap/zap#most-faq\n- https://facil.io/#forking-contributing-and-all-that-jazz\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 1328bdf

Please sign in to comment.