[cef][wam] Make the recipe work with official chromium release tarballs
[AGL/meta-agl-demo.git] / recipes-wam / cef / files / chromium / 0016-meta-browser-Delete-compiler-options-not-available-i.patch
1 From 267609878c7f7472990ee5b480a9ab1c54dad8b2 Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Wed, 4 Dec 2019 19:06:54 -0800
4 Subject: [PATCH 16/33] [meta-browser] Delete compiler options not available in
5  release versions of clang _yet_
6
7 Upstream-Status: Inappropriate [ clang/master already supports them ]
8 Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
10 ---
11  build/config/compiler/BUILD.gn | 5 +++++
12  1 file changed, 5 insertions(+)
13
14 diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
15 index 6d87a2b03fa04..5762f0b4e6b0a 100644
16 --- a/build/config/compiler/BUILD.gn
17 +++ b/build/config/compiler/BUILD.gn
18 @@ -1725,6 +1725,11 @@ config("default_warnings") {
19        cflags += [
20          "-Wenum-compare-conditional",
21  
22 +        # Disable unknown warnings, since system clang may not have
23 +        # backported newer warning yet unlike internal clang that
24 +        # chromium uses.
25 +        "-Wno-unknown-warning-option",
26 +
27          # Ignore warnings about MSVC optimization pragmas.
28          # TODO(thakis): Only for no_chromium_code? http://crbug.com/912662
29          "-Wno-ignored-pragma-optimize",
30 -- 
31 2.42.1
32