diff options
author | 2025-09-09 23:48:50 -0400 | |
---|---|---|
committer | 2025-09-09 23:48:50 -0400 | |
commit | e09b56f6ccf10ddbba5a009ee0ed09e43e13abd0 (patch) | |
tree | ce1a0e746f504e532bf130a7c6c2bae5aefe0794 | |
parent | cc1dea333322680d136299d2c12aa58622e26251 (diff) | |
download | ppo-e09b56f6ccf10ddbba5a009ee0ed09e43e13abd0.tar.xz |
build.gn fix.
-rw-r--r-- | www-client/chromium/Manifest | 2 | ||||
-rw-r--r-- | www-client/chromium/files/chromium-142-compiler.patch | 56 |
2 files changed, 46 insertions, 12 deletions
diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest index e88cb0e..f3a5826 100644 --- a/www-client/chromium/Manifest +++ b/www-client/chromium/Manifest @@ -17,7 +17,7 @@ AUX chromium-140-gni-lf.patch 1242 BLAKE2B 3686048909b6f4417951c1709b3d757ec6e73 AUX chromium-140-rust-1.8x.patch 626 BLAKE2B 3dcd6ace2bd8e8072e0a12eb8035bfc060f59fe55b20e623ff16897bf79596991773eab4f1e7a1d1b8334a2b3193f208524f4397ba1ff10e78a70f94c7ff7723 SHA512 ecc8cdef7409f6fc2a0af5ea8f9909d30b267457120e0a87702726a213446607c9473b521420d6738d1113c6697bd0a0716d9a2097d70b9d396b3dc35d7c7660 AUX chromium-141-compiler.patch 18130 BLAKE2B 371c035b27eabf9724a195e5d8d5a9472d0e6e7161484147da0e1230a30381b056bb195bdd8b0d354b0c5c0d0dc4712fbe0a75c45f8e189800181e7016dd90a5 SHA512 209c2398f646b07e2f0a742709e66db11fae169d5e10a1a360821f416c62e529b2516a1a61d05b753ade25f35956c72012d874fb94d6f8c1e7cbbff58cbabb34 AUX chromium-141-mv2-ungoogled.patch 7180 BLAKE2B 5d4c0aa6c85aa62d77691b64ef9f99054977674fd05462f7eaa5612f8372ed0c9f8a92f480bcf6a152657c21f266f1449814f070f6510773214e2b55a8a868f2 SHA512 7dd646188b4db14cba565a3a91dbb8a0c101c74d46b23d43647dde57ba1abef80196d46623f7f66049fb80ac14c3dff872cf0bb78a7a59e073701899f8b235fb -AUX chromium-142-compiler.patch 18121 BLAKE2B b9eeb9dabfb5458aa54b78d1f3212aa51cefd860b5d30b4c133f10dc3a8ea5fd121d6756614d913cc6a9addf3e3893614bcccb6c5f99ad185ba9bc5eae7a3f12 SHA512 d0351e41dbd5d6ff24db2ac4725461a2180a9f773c91c843454a90d72571647b54bbd79531e1be3af163a534009c4c6b34148f132e55101041ab964b018d5ab4 +AUX chromium-142-compiler.patch 19579 BLAKE2B a02f67483bbf07b6c273d3a73939958fa2ac60cc0c886318b046cc4325d1f63ea9be7169b988aa86721e8316d0fc31f0f3f2e83f9f6c9c0b62eb903c7e4a05e4 SHA512 f8056f2f07c17da2878d2b34c2b692b65b1d0ddb57f48e92e4044835a1968e90fe7cf9cb60d02af6c768625047a83304e5378a15a8e7071f73c9c18ad91aeafe AUX chromium-142-rust-1.8x.patch 644 BLAKE2B b1d78eb9693a7b73aace188d1c6d1ef634eeb4a8c4d15f4b9be8535a00e8d30f3c5005e487870bb597633bb86413c098f588c72d70a4fc931f7123aafeb68a65 SHA512 38472810fbafd948df461ff20b0a8065bbc7cd044d1e54bf332ed92c8546524487eec929c0369957fc18046ca95687b906b3104d3c3e56ed585b44308cbeaf4f AUX chromium-browser.xml 407 BLAKE2B 168d78b0855546ca559cfb51aff0bc85d5e6ae974c25eb76e4a02f6d11659489c6e40397a0b2f7bc1fda336fd2c6dd8c863fccc3340719210b41c7fef51927f4 SHA512 b767fb4fd1925029d95560fc14cb7ab12ae43b2fe923e92d75e733b9723cbe1dcdf6df041a2b62554e98b79b47ef3f6028c773e72e6fd53166a021d49657aeca AUX chromium-cross-compile.patch 323 BLAKE2B 8d5091ce5287422c9688ede2563360a96b8bd34b9750dc1c8f0b6ca9aeff2c066fac2da169396baa131d971c087c78f9af53999df0e102d1f57176f5e8d3dd57 SHA512 06d3afc1aa19e57daac0e4bad37e1f365a68408240430e5e818e5a4f12e3b7519214eafa463633e447e7029f4ae13ea864ca347ad1fac117702a0be88718a954 diff --git a/www-client/chromium/files/chromium-142-compiler.patch b/www-client/chromium/files/chromium-142-compiler.patch index 0970c7c..8b9b331 100644 --- a/www-client/chromium/files/chromium-142-compiler.patch +++ b/www-client/chromium/files/chromium-142-compiler.patch @@ -1,5 +1,5 @@ diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn -index 9cf9079bc5..a7db932900 100644 +index 9cf9079bc5..fe08327b93 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -261,15 +261,6 @@ declare_args() { @@ -326,7 +326,41 @@ index 9cf9079bc5..a7db932900 100644 if (use_clang_modules) { cflags_cc = [ "-fmodules", -@@ -2286,11 +2050,7 @@ config("chromium_code") { +@@ -2163,18 +1927,6 @@ config("default_warnings") { + ] + } + +- if (is_component_build && use_clang_warning_suppression_file && !is_win) { +- # Warn for globally unique objects which might get duplicated if built +- # into different components, due to hidden visibility. Only applicable +- # to component builds. +- +- # For details about the warning and now to fix it, see the official docs at +- # https://clang.llvm.org/docs/DiagnosticsReference.html#wunique-object-duplication +- # If you still have trouble resolving it, file a bug asking for advice in the +- # Chromium > Tools > LLVM component, and cc dloehr and thakis. +- cflags_cc += [ "-Wunique-object-duplication" ] +- } +- + if (is_wasm) { + # Abseil's `symbolize_emscripten.inc` file currently has macros that are + # not compatible with C++98, so turn off the warnings. +@@ -2206,14 +1958,6 @@ config("default_warnings") { + if (cc_wrapper == "ccache" || cc_wrapper == "icecc") { + cflags += [ "-Wno-gnu-line-marker" ] + } +- +- if (is_wexit_time_destructors_default && +- use_clang_warning_suppression_file) { +- # TODO(crbug.com/40031409): We are migrating towards making this warning +- # enabled by default. Once that is completed, the warning +- # should always be added for clang builds. +- cflags += [ "-Wexit-time-destructors" ] +- } + } + + # TODO(crbug.com/354162568): Clean up and enable. +@@ -2286,11 +2030,7 @@ config("chromium_code") { defines = [ "_HAS_NODISCARD" ] } } else { @@ -339,7 +373,7 @@ index 9cf9079bc5..a7db932900 100644 # In Chromium code, we define __STDC_foo_MACROS in order to get the # C99 macros on Mac and Linux. -@@ -2299,24 +2059,6 @@ config("chromium_code") { +@@ -2299,24 +2039,6 @@ config("chromium_code") { "__STDC_FORMAT_MACROS", ] @@ -364,7 +398,7 @@ index 9cf9079bc5..a7db932900 100644 if (is_apple) { cflags_objc = [ "-Wimplicit-retain-self" ] cflags_objcc = [ "-Wimplicit-retain-self" ] -@@ -2732,7 +2474,8 @@ config("default_stack_frames") { +@@ -2732,7 +2454,8 @@ config("default_stack_frames") { # [0]: https://pinpoint-dot-chromeperf.appspot.com/job/147634a8be0000 # [1]: https://pinpoint-dot-chromeperf.appspot.com/job/132bc772be0000 # [2]: https://crrev.com/c/5447532 @@ -374,7 +408,7 @@ index 9cf9079bc5..a7db932900 100644 if (is_win) { # clang-cl's /O2 corresponds to clang's -O3, and really want -O2 for # consistency with the other platforms. -@@ -2781,7 +2524,8 @@ config("optimize") { +@@ -2781,7 +2504,8 @@ config("optimize") { } # Turn off optimizations. @@ -384,7 +418,7 @@ index 9cf9079bc5..a7db932900 100644 if (is_win) { cflags = [ "/Od", # Disable optimization. -@@ -2816,7 +2560,8 @@ config("no_optimize") { +@@ -2816,7 +2540,8 @@ config("no_optimize") { # Turns up the optimization level. Used to explicitly enable -O2 instead of # -Os for select targets on platforms that use optimize_for_size. No-op # elsewhere. @@ -394,7 +428,7 @@ index 9cf9079bc5..a7db932900 100644 ldflags = common_optimize_on_ldflags if (is_win) { # Favor speed over size, /O2 must be before the common flags. -@@ -2837,7 +2582,8 @@ config("optimize_max") { +@@ -2837,7 +2562,8 @@ config("optimize_max") { # # TODO(crbug.com/41259697) - rework how all of these configs are related # so that we don't need this disclaimer. @@ -404,7 +438,7 @@ index 9cf9079bc5..a7db932900 100644 ldflags = common_optimize_on_ldflags if (is_win) { # Favor speed over size, /O2 must be before the common flags. -@@ -2854,7 +2600,8 @@ config("optimize_speed") { +@@ -2854,7 +2580,8 @@ config("optimize_speed") { rustflags = [ "-Copt-level=3" ] } @@ -414,7 +448,7 @@ index 9cf9079bc5..a7db932900 100644 cflags = [ "-O1" ] + common_optimize_on_cflags rustflags = [ "-Copt-level=1" ] ldflags = common_optimize_on_ldflags -@@ -2981,7 +2728,8 @@ config("win_pdbaltpath") { +@@ -2981,7 +2708,8 @@ config("win_pdbaltpath") { } # Full symbols. @@ -424,7 +458,7 @@ index 9cf9079bc5..a7db932900 100644 rustflags = [] configs = [] if (is_win) { -@@ -3137,7 +2885,8 @@ config("symbols") { +@@ -3137,7 +2865,8 @@ config("symbols") { # Minimal symbols. # This config guarantees to hold symbol for stack trace which are shown to user # when crash happens in unittests running on buildbot. @@ -434,7 +468,7 @@ index 9cf9079bc5..a7db932900 100644 rustflags = [] if (is_win) { # Functions, files, and line tables only. -@@ -3213,7 +2962,8 @@ config("minimal_symbols") { +@@ -3213,7 +2942,8 @@ config("minimal_symbols") { # This configuration contains function names only. That is, the compiler is # told to not generate debug information and the linker then just puts function # names in the final debug information. |