[fuchsia] Fix debug symbol registration. (flutter/engine#36849)
This commit is contained in:
@@ -109,7 +109,10 @@ engine-info "Copying the patched SDK (dart:ui, dart:zircon, dart:fuchsia) to Fuc
|
||||
cp -ra "${fuchsia_out_dir}"/flutter_runner_patched_sdk/* "$FUCHSIA_DIR"/prebuilt/third_party/flutter/"${fuchsia_cpu}"/release/aot/flutter_runner_patched_sdk/
|
||||
|
||||
engine-info "Registering debug symbols..."
|
||||
"$ENGINE_DIR"/fuchsia/sdk/linux/tools/x64/symbol-index add "${fuchsia_out_dir}"/.build-id "${fuchsia_out_dir}"
|
||||
# .jiri_root/bin/ffx needs to run from $FUCHSIA_DIR.
|
||||
pushd $FUCHSIA_DIR
|
||||
"$FUCHSIA_DIR"/.jiri_root/bin/ffx debug symbol-index add "${fuchsia_out_dir}"/.build-id --build-dir "${fuchsia_out_dir}"
|
||||
popd # $FUCHSIA_DIR
|
||||
|
||||
if [[ "${runtime_mode}" == release ]]
|
||||
then
|
||||
|
||||
@@ -164,11 +164,12 @@ do
|
||||
rm -r "${far_debug_dir}"
|
||||
done
|
||||
|
||||
engine-info "Registering debug symbols..."
|
||||
"$ENGINE_DIR"/fuchsia/sdk/linux/tools/x64/symbol-index add "${fuchsia_out_dir}"/.build-id "${fuchsia_out_dir}"
|
||||
|
||||
# .jiri_root/bin/ffx needs to run from $FUCHSIA_DIR.
|
||||
pushd $FUCHSIA_DIR
|
||||
|
||||
engine-info "Registering debug symbols..."
|
||||
"$FUCHSIA_DIR"/.jiri_root/bin/ffx debug symbol-index add "${fuchsia_out_dir}"/.build-id --build-dir "${fuchsia_out_dir}"
|
||||
|
||||
if [[ "$skip_fuchsia_build" -eq 0 ]]
|
||||
then
|
||||
engine-info "Building Fuchsia in terminal.x64 mode... (to skip this, run with --skip-fuchsia-build)"
|
||||
|
||||
@@ -80,7 +80,10 @@ engine-info "Building ${fuchsia_out_dir_name}..."
|
||||
${ninja_cmd} -C "${fuchsia_out_dir}" fuchsia_tests
|
||||
|
||||
engine-info "Registering debug symbols..."
|
||||
"${ENGINE_DIR}"/fuchsia/sdk/linux/tools/x64/symbol-index add "${fuchsia_out_dir}"/.build-id "${fuchsia_out_dir}"
|
||||
# .jiri_root/bin/ffx needs to run from $FUCHSIA_DIR.
|
||||
pushd $FUCHSIA_DIR
|
||||
"$FUCHSIA_DIR"/.jiri_root/bin/ffx debug symbol-index add "${fuchsia_out_dir}"/.build-id --build-dir "${fuchsia_out_dir}"
|
||||
popd # $FUCHSIA_DIR
|
||||
|
||||
test_packages="$(find ${fuchsia_out_dir} -name "${package_filter}")"
|
||||
|
||||
|
||||
@@ -4,6 +4,11 @@
|
||||
|
||||
import("config/config.gni")
|
||||
|
||||
# TODO(akbiggs): Delete this, symbol-index no longer exists, it has been
|
||||
# replaced with ffx debug symbol-index. I don't think this build rule is being
|
||||
# used because it would be failing if it was, so it can probably be removed
|
||||
# safely.
|
||||
#
|
||||
# Template for running the symbol-index tool for registering symbols with the symbolizer.
|
||||
#
|
||||
# Parameters
|
||||
|
||||
Reference in New Issue
Block a user