summarylogtreecommitdiffstats
path: root/chromium-exclude_unwind_tables_r2.patch
diff options
context:
space:
mode:
authorBlackEagle2017-11-18 19:50:58 +0100
committerBlackEagle2017-11-18 19:50:58 +0100
commite6e7341aa2b8e6d0f3adba36d7c6b48615210e43 (patch)
treee7ff8b5c5ab2391d436d11331c853e5d0469dc9d /chromium-exclude_unwind_tables_r2.patch
parent0203a77702792ccf961d9af3f1f0dea31ea88030 (diff)
downloadaur-e6e7341aa2b8e6d0f3adba36d7c6b48615210e43.tar.gz
opera-developer-ffmpeg-codecs :: 64.0.3251.0-1
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
Diffstat (limited to 'chromium-exclude_unwind_tables_r2.patch')
-rw-r--r--chromium-exclude_unwind_tables_r2.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/chromium-exclude_unwind_tables_r2.patch b/chromium-exclude_unwind_tables_r2.patch
new file mode 100644
index 000000000000..1961f15e412d
--- /dev/null
+++ b/chromium-exclude_unwind_tables_r2.patch
@@ -0,0 +1,33 @@
+diff --git a/build/config/compiler/compiler.gni b/build/config/compiler/compiler.gni
+index ad40fd9..50e19a4 100644
+--- a/build/config/compiler/compiler.gni
++++ b/build/config/compiler/compiler.gni
+@@ -68,19 +68,19 @@
+
+ # Whether or not we should use position independent code.
+ use_pic = true
++
++ # Exclude unwind tables for official builds as unwinding can be done from
++ # stack dumps produced by Crashpad at a later time "offline" in the crash
++ # server. For unofficial (e.g. development) builds and non-Chrome branded
++ # (e.g. Cronet which doesn't use Crashpad, crbug.com/479283) builds it's
++ # useful to be able to unwind at runtime.
++ exclude_unwind_tables =
++ (is_chrome_branded && is_official_build) ||
++ (is_chromecast && !is_cast_desktop_build && !is_debug && !is_fuchsia)
+ }
+
+ assert(!is_cfi || use_thin_lto, "CFI requires ThinLTO")
+
+-# Exclude unwind tables for official builds as unwinding can be done from stack
+-# dumps produced by Crashpad at a later time "offline" in the crash server.
+-# For unofficial (e.g. development) builds and non-Chrome branded (e.g. Cronet
+-# which doesn't use Crashpad, crbug.com/479283) builds it's useful to be able
+-# to unwind at runtime.
+-exclude_unwind_tables =
+- (is_chrome_branded && is_official_build) ||
+- (is_chromecast && !is_cast_desktop_build && !is_debug && !is_fuchsia)
+-
+ # If true, optimize for size. Does not affect windows builds.
+ # Linux & Mac favor speed over size.
+ # TODO(brettw) it's weird that Mac and desktop Linux are different. We should