Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions srcpkgs/chromium/files/musl-patches/libc++-musl.patch

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,13 @@
#define HAS_HW_CAPS
#endif

--- a/base/allocator/partition_allocator/partition_alloc.gni
+++ b/base/allocator/partition_allocator/partition_alloc.gni
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

+import("//build/config/linux/musl.gni")
import("//build_overrides/partition_alloc.gni")

# -----------------------------------------------------------------------------
11 changes: 11 additions & 0 deletions srcpkgs/chromium/patches/chromium-147-llvm-22.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -617,7 +617,7 @@
# https://crbug.com/484082200 for background and https://crrev.com/c/7593035
# for discussion.
if (!is_wasm) {
- cflags += [ "-fno-lifetime-dse" ]
+ # cflags += [ "-fno-lifetime-dse" ]
}

# TODO(hans): Remove this once Clang generates better optimized debug info
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
--- a/build/toolchain/toolchain.gni
+++ b/build/toolchain/toolchain.gni
@@ -51,6 +51,10 @@
}
}

--- /dev/null 2026-04-08 02:08:03.222890460 +0200
+++ b/build/config/linux/musl.gni 2026-04-10 01:18:23.479529250 +0200
@@ -0,0 +1,3 @@
+declare_args() {
+ is_musl = false
+}
+
# Extension for shared library files (including leading dot).
if (is_apple) {
shlib_extension = ".dylib"
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -20,6 +20,7 @@
import("//build/config/rust.gni")
import("//build/config/ui.gni")
import("//build/config/unwind.gni")
+import("//build/config/linux/musl.gni")
import("//build/toolchain/rbe.gni")
import("//build/toolchain/toolchain.gni")
import("//build_overrides/build.gni")
@@ -1282,8 +1282,13 @@
# simplicity we always explicitly set the architecture.
if (current_cpu == "x64") {
Expand Down Expand Up @@ -61,3 +62,51 @@
}
} else if (current_cpu == "mipsel") {
ldflags += [ "-Wl,--hash-style=sysv" ]
--- a/buildtools/third_party/libc++/__config_site
+++ b/buildtools/third_party/libc++/__config_site
@@ -26,12 +26,6 @@
#define _LIBCPP_HAS_MONOTONIC_CLOCK 1
#define _LIBCPP_HAS_TERMINAL 1

-#ifdef ANDROID_HOST_MUSL
-#define _LIBCPP_HAS_MUSL_LIBC 1
-#else
-#define _LIBCPP_HAS_MUSL_LIBC 0
-#endif
-
#ifdef _WIN32
#define _LIBCPP_HAS_THREAD_API_PTHREAD 0
#define _LIBCPP_HAS_THREAD_API_EXTERNAL 0
--- a/build/config/rust.gni
+++ b/build/config/rust.gni
@@ -5,6 +5,7 @@
import("//build/config/chrome_build.gni")
import("//build/config/compiler/compiler.gni")
import("//build/config/sanitizers/sanitizers.gni")
+import("//build/config/linux/musl.gni")
import("//build/toolchain/toolchain.gni")

if (is_android) {
--- a/build/config/c++/BUILD.gn
+++ b/build/config/c++/BUILD.gn
@@ -3,6 +3,7 @@
import("//build/config/chromeos/ui_mode.gni")
import("//build/config/compiler/compiler.gni")
import("//build/config/dcheck_always_on.gni")
+import("//build/config/linux/musl.gni")
import("//buildtools/deps_revisions.gni")

assert(use_custom_libcxx, "should only be used if use_custom_libcxx is set")
@@ -60,6 +61,12 @@

defines += [ "CR_LIBCXX_REVISION=$libcxx_revision" ]

+ if (is_musl) {
+ defines += [ "_LIBCPP_HAS_MUSL_LIBC=1" ]
+ } else {
+ defines += [ "_LIBCPP_HAS_MUSL_LIBC=0" ]
+ }
+
if (is_win) {
# Intentionally not using libc++abi on Windows because libc++abi only
# implements the Itanium C++ ABI, and not the Microsoft ABI which we use on
6 changes: 3 additions & 3 deletions srcpkgs/chromium/template
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Template file for 'chromium'
pkgname=chromium
# See https://chromiumdash.appspot.com/releases?platform=Linux for the latest version
version=146.0.7680.177
version=147.0.7727.55
revision=1
_rollup=4.22.4
archs="i686* x86_64* aarch64* armv7l*"
_llvmver=21
_llvmver=22
hostmakedepends="
$(vopt_if clang "clang${_llvmver} lld${_llvmver} llvm${_llvmver} compiler-rt${_llvmver}")
bison git gperf hwids ninja nodejs perl pkg-config python3
Expand Down Expand Up @@ -36,7 +36,7 @@ homepage="https://www.chromium.org/"
# distfiles="https://chromium.googlesource.com/chromium/src.git/+archive/refs/tags/${version}.tar.gz"
distfiles="https://github.com/chromium-linux-tarballs/chromium-tarballs/releases/download/${version}/chromium-${version}-linux.tar.xz
https://registry.npmjs.org/@rollup/wasm-node/-/wasm-node-${_rollup}.tgz"
checksum="b0dbfa58893c4ae6e8bb074b86fd2ebf107dbf1604b5f60bda162df712808c0c
checksum="39ee033238284174dc3bd1a24f6508ff63292134216bb02b217a5ad50ce32a26
ee49bf67bd9bee869405af78162d028e2af0fcfca80497404f56b1b99f272717"

skip_extraction="wasm-node-${_rollup}.tgz"
Expand Down