diff --git a/build.zig b/build.zig index 0ccbb6f..7279ee4 100644 --- a/build.zig +++ b/build.zig @@ -3,6 +3,10 @@ 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) { + std.log.err("\x1b[31mPlatform Not Supported\x1b[0m\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", .{}); + std.os.exit(1); + } // Standard release options allow the person running `zig build` to select // between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall. const optimize = b.standardOptimizeOption(.{});