blob: abc61ab2bf6bab66146d689bb3aafe413a65a5c2 [file] [log] [blame]
# Copyright (c) 2021 Project CHIP Authors
#
# 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("//build_overrides/build.gni")
import("${build_root}/toolchain/gcc_toolchain.gni")
gcc_toolchain("linux_x64_gcc") {
toolchain_args = {
current_os = "linux"
current_cpu = "x64"
is_clang = false
}
}
gcc_toolchain("linux_x64_clang") {
toolchain_args = {
current_os = "linux"
current_cpu = "x64"
is_clang = true
}
}
gcc_toolchain("linux_x86_gcc") {
toolchain_args = {
current_os = "linux"
current_cpu = "x86"
is_clang = false
}
}
gcc_toolchain("linux_x86_clang") {
toolchain_args = {
current_os = "linux"
current_cpu = "x86"
is_clang = true
}
}
gcc_toolchain("linux_arm_gcc") {
_toolprefix = "arm-linux-gnueabihf-"
cc = "${_toolprefix}gcc"
cxx = "${_toolprefix}g++"
ar = "${_toolprefix}ar"
toolchain_args = {
current_os = "linux"
current_cpu = "arm"
is_clang = false
}
}
gcc_toolchain("linux_arm_clang") {
toolchain_args = {
current_os = "linux"
current_cpu = "arm"
is_clang = true
}
}
gcc_toolchain("linux_arm64_gcc") {
_toolprefix = "aarch64-linux-gnu-"
cc = "${_toolprefix}gcc"
cxx = "${_toolprefix}g++"
ar = "${_toolprefix}ar"
toolchain_args = {
current_os = "linux"
current_cpu = "arm64"
is_clang = false
}
}
gcc_toolchain("linux_arm64_clang") {
toolchain_args = {
current_os = "linux"
current_cpu = "arm64"
is_clang = true
}
}