From fa288c269dd6544f6a08c395774bbd8f138823ce Mon Sep 17 00:00:00 2001 From: Carson Katri Date: Thu, 18 Sep 2025 16:39:07 -0400 Subject: [PATCH] Only use -Wno-nullability-completeness on iOS --- build.zig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index cd8bf2e3..ff5e13c5 100644 --- a/build.zig +++ b/build.zig @@ -549,7 +549,12 @@ fn buildMbedtls(b: *Build, m: *Build.Module) !void { mbedtls.addIncludePath(b.path(root ++ "include")); mbedtls.addIncludePath(b.path(root ++ "library")); - mbedtls.addCSourceFiles(.{ .flags = &.{"-Wno-nullability-completeness"}, .files = &.{ + const flags: []const []const u8 = if (m.resolved_target.?.result.os.tag == .ios) + &.{"-Wno-nullability-completeness"} + else + &.{}; + + mbedtls.addCSourceFiles(.{ .flags = flags, .files = &.{ root ++ "library/aes.c", root ++ "library/aesni.c", root ++ "library/aesce.c",