mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-14 23:38:57 +00:00
Only use -Wno-nullability-completeness on iOS
This commit is contained in:
committed by
Pierre Tachoire
parent
3b5c7b0c25
commit
fa288c269d
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user