Skip to content

Commit

Permalink
macOS, iOS のパッチを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
melpon committed Aug 22, 2024
1 parent d42c048 commit 45319f5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
11 changes: 10 additions & 1 deletion patches/ios_build.patch
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ index 9928fc37b..0f4c72b01 100644
# Use this instead of clang_use_chrome_plugins to enable just the raw-ptr-plugin.
clang_use_raw_ptr_plugin = false
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index 3b809a3c0..eea57780d 100644
index 3b809a3c0..5c20f6d16 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -475,8 +475,8 @@ config("compiler") {
Expand Down Expand Up @@ -86,6 +86,15 @@ index 3b809a3c0..eea57780d 100644
# C11/C++11 compiler flags setup.
# ---------------------------
if (is_linux || is_chromeos || is_android || (is_nacl && is_clang) ||
@@ -1997,7 +1948,7 @@ config("default_warnings") {

# TODO(crbug.com/355446806): Clean up and enable.
if (is_apple) {
- ldflags += [ "-Wl,-no_warn_duplicate_libraries" ]
+ # ldflags += [ "-Wl,-no_warn_duplicate_libraries" ]
}

# Rust warnings
diff --git a/build/toolchain/apple/toolchain.gni b/build/toolchain/apple/toolchain.gni
index ab7378fe2..9b2a869d9 100644
--- a/build/toolchain/apple/toolchain.gni
Expand Down
11 changes: 10 additions & 1 deletion patches/macos_use_xcode_clang.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index 3b809a3c0..eea57780d 100644
index 3b809a3c0..5c20f6d16 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -475,8 +475,8 @@ config("compiler") {
Expand Down Expand Up @@ -69,6 +69,15 @@ index 3b809a3c0..eea57780d 100644
# C11/C++11 compiler flags setup.
# ---------------------------
if (is_linux || is_chromeos || is_android || (is_nacl && is_clang) ||
@@ -1997,7 +1948,7 @@ config("default_warnings") {

# TODO(crbug.com/355446806): Clean up and enable.
if (is_apple) {
- ldflags += [ "-Wl,-no_warn_duplicate_libraries" ]
+ # ldflags += [ "-Wl,-no_warn_duplicate_libraries" ]
}

# Rust warnings
diff --git a/build/toolchain/apple/toolchain.gni b/build/toolchain/apple/toolchain.gni
index ab7378fe2..b425443e7 100644
--- a/build/toolchain/apple/toolchain.gni
Expand Down

0 comments on commit 45319f5

Please sign in to comment.