mirror of
https://github.com/zigzap/zap.git
synced 2025-10-21 07:34:08 +00:00
adapt to zig changes in std.os and std.process
This commit is contained in:
parent
1cb29622e7
commit
e6b344fe06
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ pub fn build(b: *std.Build) !void {
|
|||
const target = b.standardTargetOptions(.{});
|
||||
if (target.result.os.tag == .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);
|
||||
std.process.exit(1);
|
||||
}
|
||||
// Standard release options allow the person running `zig build` to select
|
||||
// between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall.
|
||||
|
@ -13,7 +13,7 @@ pub fn build(b: *std.Build) !void {
|
|||
|
||||
const use_openssl = b.option(bool, "openssl", "Use system-installed openssl for TLS support in zap") orelse blk: {
|
||||
// Alternatively, use an os env var to determine whether to build openssl support
|
||||
if (std.os.getenv("ZAP_USE_OPENSSL")) |val| {
|
||||
if (std.posix.getenv("ZAP_USE_OPENSSL")) |val| {
|
||||
if (std.mem.eql(u8, val, "true")) break :blk true;
|
||||
}
|
||||
break :blk false;
|
||||
|
|
Loading…
Add table
Reference in a new issue