|
1 | | -diff --git a/config/c++/c++.gni b/config/c++/c++.gni |
2 | | -index c29d898fb..5ef014e51 100644 |
3 | | ---- a/config/c++/c++.gni |
4 | | -+++ b/config/c++/c++.gni |
5 | | -@@ -62,7 +62,7 @@ declare_args() { |
6 | | - # case. |
7 | | - # We disable that on LibFuzzer builds because it breaks the libfuzzer |
8 | | - # runtime. See crbug.com/411020147. |
9 | | -- use_llvm_libatomic = !is_apple && !is_nacl && !use_libfuzzer |
10 | | -+ use_llvm_libatomic = !is_apple && !is_nacl && !use_libfuzzer && !is_linux |
11 | | - } |
| 1 | +diff --git a/config/compiler/BUILD.gn b/config/compiler/BUILD.gn |
| 2 | +index fca6c9295..31b76f722 100644 |
| 3 | +--- a/config/compiler/BUILD.gn |
| 4 | ++++ b/config/compiler/BUILD.gn |
| 5 | +@@ -656,6 +656,7 @@ config("compiler") { |
| 6 | + # standard-compliant __VA_OPT__ added by C++20, and switch the gcc build |
| 7 | + # to -std=c*. |
| 8 | + standard_prefix = "gnu" |
| 9 | ++ defines += [ "_DEFAULT_SOURCE" ] |
| 10 | + } |
12 | 11 |
|
13 | | - if (use_implicit_libcxx_modules) { |
| 12 | + cflags_c += [ "-std=${standard_prefix}11" ] |
14 | 13 | diff --git a/config/linux/BUILD.gn b/config/linux/BUILD.gn |
15 | | -index 131bb71d1..36c86c48e 100644 |
| 14 | +index 131bb71d1..a928badd0 100644 |
16 | 15 | --- a/config/linux/BUILD.gn |
17 | 16 | +++ b/config/linux/BUILD.gn |
18 | 17 | @@ -15,6 +15,7 @@ group("linux") { |
19 | 18 | # is applied to all targets. It is here to separate out the logic that is |
20 | 19 | # Linux-only. This is not applied to Android, but is applied to ChromeOS. |
21 | 20 | config("compiler") { |
22 | | -+ cflags_cc = [ "-Wno-changes-meaning" ] |
| 21 | ++ cflags_cc = [ "-Wno-changes-meaning", "-Wno-unknown-pragmas" ] |
23 | 22 | if (current_cpu == "arm64") { |
24 | 23 | import("//build/config/arm.gni") |
25 | 24 | cflags = [] |
0 commit comments