blob: 52826ea40b7843d6e1ace57e2a6afbc721228000 [file] [log] [blame]
# Copyright 2022 The Cobalt Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//starboard/shared/toolchain/overridable_gcc_toolchain.gni")
# Directory for GCC 6.3 if it is installed as a system dependency.
_default_gcc_6_3_bin_dir = "/usr/bin"
overridable_gcc_toolchain("host") {
cc = "${_default_gcc_6_3_bin_dir}/gcc-6"
cxx = "${_default_gcc_6_3_bin_dir}/g++-6"
ld = cxx
# We use whatever 'ar' resolves to.
ar = "ar"
toolchain_args = {
target_os = "linux"
target_cpu = "x64"
is_clang = false
}
}
overridable_gcc_toolchain("target") {
cc = "${_default_gcc_6_3_bin_dir}/gcc-6"
cxx = "${_default_gcc_6_3_bin_dir}/g++-6"
ld = cxx
# We use whatever 'ar' resolves to.
ar = "ar"
toolchain_args = {
is_clang = false
}
}