Only use -Wno-nullability-completeness on iOS

This commit is contained in:
Carson Katri
2025-09-18 16:39:07 -04:00
committed by Pierre Tachoire
parent 3b5c7b0c25
commit fa288c269d

View File

@@ -549,7 +549,12 @@ fn buildMbedtls(b: *Build, m: *Build.Module) !void {
mbedtls.addIncludePath(b.path(root ++ "include")); mbedtls.addIncludePath(b.path(root ++ "include"));
mbedtls.addIncludePath(b.path(root ++ "library")); 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/aes.c",
root ++ "library/aesni.c", root ++ "library/aesni.c",
root ++ "library/aesce.c", root ++ "library/aesce.c",