mirror of
https://github.com/zigzap/zap.git
synced 2025-10-20 15:14:08 +00:00
Merge pull request #103 from LordAsdi/master
Fix build.zig to allow cross compilation on windows
This commit is contained in:
commit
094d4cf6f9
1 changed files with 3 additions and 2 deletions
|
@ -13,9 +13,10 @@ 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.posix.getenv("ZAP_USE_OPENSSL")) |val| {
|
||||
if (std.process.getEnvVarOwned(b.allocator, "ZAP_USE_OPENSSL")) |val| {
|
||||
defer b.allocator.free(val);
|
||||
if (std.mem.eql(u8, val, "true")) break :blk true;
|
||||
}
|
||||
} else |_| {}
|
||||
break :blk false;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue