blob: fd69741649d5af5c47aacb4b5898164630574b03 [file] [log] [blame]
#!/bin/bash
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Script to switch the toolchain compiler. In addition to switching the
# compiler by calling gcc-config, it copies over the libgcc_s.so and
# libstdc++.so files to all board roots that use this cross compiler.
. /usr/lib/crosutils/common.sh || exit 1
. "${SRC_ROOT}/platform/dev/toolchain_utils.sh" ||
! echo "Unable to load toolchain_utils.sh" || exit 1
cros_gcc_config "$@"