From b0f0e798b470bfc1c246c17a1d258a5a72cbfc3b Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 27 May 2021 13:59:02 -0700 Subject: [PATCH] Disable hidden symbols on unoptimized builds in order to improve test backtraces (flutter/engine#26409) --- DEPS | 2 +- engine/src/flutter/tools/gn | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/DEPS b/DEPS index 48efd6d135..fdaa6eceee 100644 --- a/DEPS +++ b/DEPS @@ -98,7 +98,7 @@ allowed_hosts = [ ] deps = { - 'src': 'https://github.com/flutter/buildroot.git' + '@' + 'd86d028552a050f25fb25bf9163f7df0cee9f9a4', + 'src': 'https://github.com/flutter/buildroot.git' + '@' + 'ef50dec1f85ee435e967505f460d2c0ce6fde58e', # Fuchsia compatibility # diff --git a/engine/src/flutter/tools/gn b/engine/src/flutter/tools/gn index c47650c53c..695e93dfe7 100755 --- a/engine/src/flutter/tools/gn +++ b/engine/src/flutter/tools/gn @@ -294,6 +294,9 @@ def to_gn_args(args): # even with -fPIC everywhere. # gn_args['enable_profiling'] = args.runtime_mode != 'release' and args.android_cpu != 'x86' + # Make symbols visible in order to enable symbolization of unit test crash backtraces on Linux + gn_args['disable_hidden_visibility'] = args.target_os == 'linux' and args.unoptimized + if args.arm_float_abi: gn_args['arm_float_abi'] = args.arm_float_abi