blob: 59bb285a82cb588e8863108be6e848da9d57004b [file] [log] [blame]
#!/bin/bash
# Copyright 2020 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#### CATEGORY=Run, inspect and debug
### Code size attribution on binaries from the system image
set -eo pipefail
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/../lib/vars.sh || exit $?
fx-config-read
exec "${PREBUILT_DART_DIR}/bin/dart" \
--enable-experiment=non-nullable --no-sound-null-safety \
--packages="${FUCHSIA_DIR}/scripts/codesize/.dart_tool/package_config.json" \
"${FUCHSIA_DIR}/scripts/codesize/bin/main.dart" "$@"