We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9c8957 commit 4f61620Copy full SHA for 4f61620
build.zig
@@ -522,7 +522,12 @@ fn buildMbedtls(b: *Build, m: *Build.Module) !void {
522
mbedtls.addIncludePath(b.path(root ++ "include"));
523
mbedtls.addIncludePath(b.path(root ++ "library"));
524
525
- mbedtls.addCSourceFiles(.{ .flags = &.{"-Wno-nullability-completeness"}, .files = &.{
+ const flags: []const []const u8 = if (m.resolved_target.?.result.os.tag == .ios)
526
+ &.{"-Wno-nullability-completeness"}
527
+ else
528
+ &.{};
529
+
530
+ mbedtls.addCSourceFiles(.{ .flags = flags, .files = &.{
531
root ++ "library/aes.c",
532
root ++ "library/aesni.c",
533
root ++ "library/aesce.c",
0 commit comments