blob: abc61ab2bf6bab66146d689bb3aafe413a65a5c2 [file] [log] [blame]
Michael Spang1e6d70b2021-08-31 20:41:54 -04001# Copyright (c) 2021 Project CHIP Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15import("//build_overrides/build.gni")
16
17import("${build_root}/toolchain/gcc_toolchain.gni")
18
19gcc_toolchain("linux_x64_gcc") {
20 toolchain_args = {
21 current_os = "linux"
22 current_cpu = "x64"
23 is_clang = false
24 }
25}
26
27gcc_toolchain("linux_x64_clang") {
28 toolchain_args = {
29 current_os = "linux"
30 current_cpu = "x64"
31 is_clang = true
32 }
33}
34
35gcc_toolchain("linux_x86_gcc") {
36 toolchain_args = {
37 current_os = "linux"
38 current_cpu = "x86"
39 is_clang = false
40 }
41}
42
43gcc_toolchain("linux_x86_clang") {
44 toolchain_args = {
45 current_os = "linux"
46 current_cpu = "x86"
47 is_clang = true
48 }
49}
50
51gcc_toolchain("linux_arm_gcc") {
52 _toolprefix = "arm-linux-gnueabihf-"
53
54 cc = "${_toolprefix}gcc"
55 cxx = "${_toolprefix}g++"
56 ar = "${_toolprefix}ar"
57
58 toolchain_args = {
59 current_os = "linux"
60 current_cpu = "arm"
61 is_clang = false
62 }
63}
64
65gcc_toolchain("linux_arm_clang") {
66 toolchain_args = {
67 current_os = "linux"
68 current_cpu = "arm"
69 is_clang = true
70 }
71}
72
73gcc_toolchain("linux_arm64_gcc") {
74 _toolprefix = "aarch64-linux-gnu-"
75
76 cc = "${_toolprefix}gcc"
77 cxx = "${_toolprefix}g++"
78 ar = "${_toolprefix}ar"
79
80 toolchain_args = {
81 current_os = "linux"
82 current_cpu = "arm64"
83 is_clang = false
84 }
85}
86
87gcc_toolchain("linux_arm64_clang") {
88 toolchain_args = {
89 current_os = "linux"
90 current_cpu = "arm64"
91 is_clang = true
92 }
93}