| #!/bin/bash | |
| # Copyright 2018 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=Build | |
| #### PREBUILTS=${PREBUILT_GN} ${PREBUILT_NINJA} ${PREBUILT_PYTHON3} | |
| ### manually edit args.gn for the current build directory | |
| ## If FUCHSIA_BUILD_DIR is out/default, this is simply: | |
| ## gn args out/default | |
| ## It is useful for seeing and editing the arguments that are currently | |
| ## configured. | |
| source "$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/lib/vars.sh || exit $? | |
| fx-config-read | |
| set -e | |
| fx-gn-args "$@" | |
| # Check for RBE requirements if enabled. | |
| # Could be interactive if credentials need to be refreshed. | |
| fx-command-run rbe preflight | |