blob: 47237bf8ff8be7781af7b70ef5126d92351e7ab1 [file] [log] [blame] [edit]
#!/bin/bash
# Copyright 2025 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
### Provides a shortcut to the prebuilt GNU (binutils / GCC) tools
## usage: fx gnu [tool] [args...]
##
## -h|--help Shows this help and lists all available binutils / GCC tools
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/lib/toolchain.sh || exit $?
readonly -a TOOLCHAIN_PREFIXES=("")
readonly -a TOOLCHAIN_PATHS=(
"${PREBUILT_BINUTILS_DIR}/bin"
"${PREBUILT_GCC_DIR}/bin"
)
exec_toolchain_tool "$@"