[cef][wam] Make the recipe work with official chromium release tarballs
[AGL/meta-agl-demo.git] / recipes-wam / cef / files / chromium / 0017-meta-browser-Don-t-pass-disable-auto-upgrade-debug-i.patch
1 From a8243956b0fd410bf16143b3e781144ad8964244 Mon Sep 17 00:00:00 2001
2 From: Max Ihlenfeldt <max@igalia.com>
3 Date: Tue, 13 Jun 2023 14:36:23 +0000
4 Subject: [PATCH 17/33] [meta-browser] Don't pass
5  disable-auto-upgrade-debug-info to linker
6
7 The version of aarch64-oe-linux-ld.lld we use on dunfell, kirkstone, and
8 mickledore doesn't support this flag. Thus, we mustn't pass it if we
9 want to avoid an "Unknown command line argument" linker error that stops
10 the build.
11
12 Upstream-Status: Inappropriate
13 Signed-off-by: Max Ihlenfeldt <max@igalia.com>
14 ---
15  build/config/compiler/BUILD.gn | 8 --------
16  1 file changed, 8 deletions(-)
17
18 diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
19 index 5762f0b4e6b0a..c73b7ca6325d8 100644
20 --- a/build/config/compiler/BUILD.gn
21 +++ b/build/config/compiler/BUILD.gn
22 @@ -767,14 +767,6 @@ config("compiler") {
23        }
24  
25        ldflags += [ "-Wl,-mllvm,-import-instr-limit=$import_instr_limit" ]
26 -
27 -      if (!is_chromeos) {
28 -        # TODO(https://crbug.com/972449): turn on for ChromeOS when that
29 -        # toolchain has this flag.
30 -        # We only use one version of LLVM within a build so there's no need to
31 -        # upgrade debug info, which can be expensive since it runs the verifier.
32 -        ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ]
33 -      }
34      }
35  
36      # TODO(https://crbug.com/1211155): investigate why this isn't effective on
37 -- 
38 2.42.1
39