aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-build_config_compiler_BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/files/patch-build_config_compiler_BUILD.gn')
-rw-r--r--www/chromium/files/patch-build_config_compiler_BUILD.gn33
1 files changed, 21 insertions, 12 deletions
diff --git a/www/chromium/files/patch-build_config_compiler_BUILD.gn b/www/chromium/files/patch-build_config_compiler_BUILD.gn
index 66c08d46c983..5181cd589316 100644
--- a/www/chromium/files/patch-build_config_compiler_BUILD.gn
+++ b/www/chromium/files/patch-build_config_compiler_BUILD.gn
@@ -1,4 +1,4 @@
---- build/config/compiler/BUILD.gn.orig 2022-09-24 10:57:32 UTC
+--- build/config/compiler/BUILD.gn.orig 2022-10-24 13:33:33 UTC
+++ build/config/compiler/BUILD.gn
@@ -222,13 +222,16 @@ config("default_include_dirs") {
# Compiler instrumentation can introduce dependencies in DSOs to symbols in
@@ -38,7 +38,7 @@
cflags += [ "-fcrash-diagnostics-dir=" + clang_diagnostic_dir ]
# TODO(hans): Remove this once Clang generates better optimized debug info
-@@ -891,7 +898,7 @@ config("compiler_cpu_abi") {
+@@ -909,7 +916,7 @@ config("compiler_cpu_abi") {
]
}
} else if (current_cpu == "arm") {
@@ -47,7 +47,7 @@
!(is_chromeos_lacros && is_chromeos_device)) {
cflags += [ "--target=arm-linux-gnueabihf" ]
ldflags += [ "--target=arm-linux-gnueabihf" ]
-@@ -906,7 +913,7 @@ config("compiler_cpu_abi") {
+@@ -924,7 +931,7 @@ config("compiler_cpu_abi") {
cflags += [ "-mtune=$arm_tune" ]
}
} else if (current_cpu == "arm64") {
@@ -56,7 +56,7 @@
!(is_chromeos_lacros && is_chromeos_device)) {
cflags += [ "--target=aarch64-linux-gnu" ]
ldflags += [ "--target=aarch64-linux-gnu" ]
-@@ -1234,7 +1241,7 @@ config("compiler_deterministic") {
+@@ -1252,7 +1259,7 @@ config("compiler_deterministic") {
# different build directory like "out/feature_a" and "out/feature_b" if
# we build same files with same compile flag.
# Other paths are already given in relative, no need to normalize them.
@@ -65,16 +65,25 @@
# TODO(https://crbug.com/1231236): Use -ffile-compilation-dir= here.
cflags += [
"-Xclang",
-@@ -1532,7 +1539,7 @@ config("default_warnings") {
- ]
- }
+@@ -1303,7 +1310,7 @@ config("compiler_deterministic") {
+ }
+
+ config("clang_revision") {
+- if (is_clang && clang_base_path == default_clang_base_path) {
++ if (is_clang && !is_bsd && clang_base_path == default_clang_base_path) {
+ update_args = [
+ "--print-revision",
+ "--verify-version=$clang_version",
+@@ -1540,7 +1547,7 @@ config("default_warnings") {
+ "-Wno-ignored-pragma-optimize",
+ ]
- if (!is_nacl) {
+ if (!is_nacl && !is_bsd) {
cflags += [
# TODO(crbug.com/1343975) Evaluate and possibly enable.
"-Wno-deprecated-builtins",
-@@ -1705,7 +1712,7 @@ config("no_chromium_code") {
+@@ -1723,7 +1730,7 @@ config("no_chromium_code") {
# third-party libraries.
"-Wno-c++11-narrowing",
]
@@ -83,7 +92,7 @@
cflags += [
# Disabled for similar reasons as -Wunused-variable.
"-Wno-unused-but-set-variable",
-@@ -2219,7 +2226,7 @@ config("afdo_optimize_size") {
+@@ -2245,7 +2252,7 @@ config("afdo_optimize_size") {
# There are some targeted places that AFDO regresses, so we provide a separate
# config to allow AFDO to be disabled per-target.
config("afdo") {
@@ -92,7 +101,7 @@
cflags = []
if (clang_emit_debug_info_for_profiling) {
# Add the following flags to generate debug info for profiling.
-@@ -2235,7 +2242,7 @@ config("afdo") {
+@@ -2261,7 +2268,7 @@ config("afdo") {
cflags += [ "-fprofile-sample-use=${rebased_clang_sample_profile}" ]
inputs = [ _clang_sample_profile ]
}
@@ -101,8 +110,8 @@
cflags = [ "-fauto-profile=${auto_profile_path}" ]
inputs = [ auto_profile_path ]
}
-@@ -2375,7 +2382,8 @@ config("symbols") {
- }
+@@ -2409,7 +2416,8 @@ config("symbols") {
+ configs += [ "//build/config:compress_debug_sections" ]
}
- if (is_clang && (!is_nacl || is_nacl_saigo) && current_os != "zos") {