blob: 6451d30ef1c82bb8cec46b855d5da6fc438cc46c [file] [log] [blame]
# 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.
_prebuilt_gcc_dir = "//prebuilt/third_party/gcc/$host_platform"
_prebuilt_cipd_version =
read_file("$_prebuilt_gcc_dir/.versions/gcc.cipd_version", "json")
# Directory where the GCC toolchain binaries ("gcc", "nm", etc.) are
# found. This directory is expected to contain `aarch64-elf-*` and `x86_64-elf-*`
# tools used to build for the Fuchsia targets. This directory will not
# be used for host tools.
gcc_tool_dir = "$_prebuilt_gcc_dir/bin"
# This is a string identifying the particular toolchain version in use. Its
# only purpose is to be unique enough that it changes when switching to a new
# toolchain, so that recompilations with the new compiler can be triggered.
gcc_version_string = _prebuilt_cipd_version.instance_id