diff options
author | Michael Weiss <dev.primeos@gmail.com> | 2022-04-13 22:37:33 +0200 |
---|---|---|
committer | Michael Weiss <dev.primeos@gmail.com> | 2022-04-14 00:08:47 +0200 |
commit | 15623bcb654b0c5ef9b455ca1f7b7fb0ffcaea26 (patch) | |
tree | e1a699b9fca3abf4c2b637d7eee98f11e996952f /pkgs/applications/networking/browsers/chromium/common.nix | |
parent | 1bfe5c3a23df39bc42ed32c8c4e3bdc62342d36a (diff) |
chromium{Beta,Dev}: Fix a build error by disabling PGO
This fixes build errors like this: error: Could not read profile ../../chrome/build/pgo_profiles/chrome-linux-4951-1649181099-528ef6669805f2d3db6f3ad7429cfa57a6078271.profdata: unsupported instrumentation profile format version We already package the most recent stable LLVM version for Chromium but Google relies on unreleased (Git) versions (thanks...). This isn't ideal but I don't have the time to package yet another LLVM version so it'll have to cut it for now. See build/config/compiler/pgo/pgo.gni: - 0 : Means that PGO is turned off. - 1 : Used during the PGI (instrumentation) phase. - 2 : Used during the PGO (optimization) phase. With is_official_build the default is chrome_pgo_phase = 2.
Diffstat (limited to 'pkgs/applications/networking/browsers/chromium/common.nix')
-rw-r--r-- | pkgs/applications/networking/browsers/chromium/common.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/applications/networking/browsers/chromium/common.nix b/pkgs/applications/networking/browsers/chromium/common.nix index a303dabad327a..bf1d26f405677 100644 --- a/pkgs/applications/networking/browsers/chromium/common.nix +++ b/pkgs/applications/networking/browsers/chromium/common.nix @@ -279,6 +279,9 @@ let enable_widevine = true; # Provides the enable-webrtc-pipewire-capturer flag to support Wayland screen capture: rtc_use_pipewire = true; + } // optionalAttrs (chromiumVersionAtLeast "101") { + # Disable PGO because the profile data requires a newer compiler version (LLVM 14 isn't sufficient): + chrome_pgo_phase = 0; } // optionalAttrs proprietaryCodecs { # enable support for the H.264 codec proprietary_codecs = true; |