mirror of
https://github.com/zigzap/zap.git
synced 2025-10-20 15:14:08 +00:00
build: remove openssl env var check
This commit is contained in:
parent
0e51d32b34
commit
0f8903c06e
1 changed files with 1 additions and 7 deletions
|
@ -11,13 +11,7 @@ pub fn build(b: *std.Build) !void {
|
|||
// between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall.
|
||||
const optimize = b.standardOptimizeOption(.{});
|
||||
|
||||
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.mem.eql(u8, val, "true")) break :blk true;
|
||||
}
|
||||
break :blk false;
|
||||
};
|
||||
const use_openssl = b.option(bool, "openssl", "Use system-installed openssl for TLS support in zap") orelse false;
|
||||
|
||||
// create a module to be used internally.
|
||||
const zap_module = b.addModule("zap", .{
|
||||
|
|
Loading…
Add table
Reference in a new issue