From 22250aac94feb39b766b7c3478e6d233445c9f9b Mon Sep 17 00:00:00 2001 From: James Chen Date: Tue, 11 Jun 2024 17:52:30 +0800 Subject: [PATCH] Fix linking error for iOS x64 --- build/config/compiler/BUILD.gn | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index e56307005..b5db75b37 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -390,7 +390,9 @@ config("compiler") { ldflags += [ "-Wl,--fatal-warnings" ] } if (fatal_linker_warnings && is_apple) { - ldflags += [ "-Wl,-fatal_warnings" ] + if (!(is_ios && target_cpu == "x64")) { + ldflags += [ "-Wl,-fatal_warnings" ] + } } }