mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
chromium: (cross): use cc-wrapper-clang instead of bare clang
Prior to this commit chromium was writing the bare, unwrapped
`clang` path into `gnFlags`. When called without the wrapper, clang
doesn't know that the linker for cross compilation isn't called
`lld` anymore -- it is called `${targetPrefix}-lld`.
This commit fixes that problem by referencing the cc-wrapper-ified
clang which is part of `llvmPackages.stdenv`.
(cherry picked from commit 10706a026b)
This commit is contained in:
committed by
Michael Weiss
parent
5c27b454ae
commit
0fd0be3e12
@@ -304,7 +304,7 @@ let
|
||||
rtc_use_pipewire = true;
|
||||
# Disable PGO because the profile data requires a newer compiler version (LLVM 14 isn't sufficient):
|
||||
chrome_pgo_phase = 0;
|
||||
clang_base_path = "${llvmPackages.clang}";
|
||||
clang_base_path = "${llvmPackages.stdenv.cc}";
|
||||
use_qt = false;
|
||||
# To fix the build as we don't provide libffi_pic.a
|
||||
# (ld.lld: error: unable to find library -l:libffi_pic.a):
|
||||
|
||||
Reference in New Issue
Block a user