2013-12-28 10:49:32 +04:00
|
|
|
# Copyright 2013 The Chromium Authors. All rights reserved.
|
2013-11-21 02:21:03 +04:00
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
2014-01-22 15:41:53 +04:00
|
|
|
import("//build/config/sysroot.gni")
|
2014-02-03 16:11:38 +04:00
|
|
|
import("//build/toolchain/gcc_toolchain.gni")
|
2014-07-18 05:51:08 +04:00
|
|
|
|
2019-02-26 01:32:20 +03:00
|
|
|
clang_toolchain("clang_ppc64") {
|
|
|
|
enable_linker_map = true
|
|
|
|
toolchain_args = {
|
|
|
|
current_cpu = "ppc64"
|
|
|
|
current_os = "linux"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-10-08 20:14:05 +03:00
|
|
|
clang_toolchain("clang_arm") {
|
|
|
|
toolprefix = "arm-linux-gnueabihf-"
|
2016-08-10 01:21:02 +03:00
|
|
|
toolchain_args = {
|
|
|
|
current_cpu = "arm"
|
|
|
|
current_os = "linux"
|
|
|
|
}
|
2015-09-22 06:25:43 +03:00
|
|
|
}
|
|
|
|
|
2016-06-14 22:42:19 +03:00
|
|
|
clang_toolchain("clang_arm64") {
|
|
|
|
toolprefix = "aarch64-linux-gnu-"
|
2016-08-10 01:21:02 +03:00
|
|
|
toolchain_args = {
|
|
|
|
current_cpu = "arm64"
|
|
|
|
current_os = "linux"
|
|
|
|
}
|
2016-06-14 22:42:19 +03:00
|
|
|
}
|
|
|
|
|
2016-12-05 15:35:18 +03:00
|
|
|
gcc_toolchain("arm64") {
|
|
|
|
toolprefix = "aarch64-linux-gnu-"
|
|
|
|
|
|
|
|
cc = "${toolprefix}gcc"
|
|
|
|
cxx = "${toolprefix}g++"
|
|
|
|
|
|
|
|
ar = "${toolprefix}ar"
|
|
|
|
ld = cxx
|
|
|
|
readelf = "${toolprefix}readelf"
|
|
|
|
nm = "${toolprefix}nm"
|
|
|
|
|
|
|
|
toolchain_args = {
|
|
|
|
current_cpu = "arm64"
|
|
|
|
current_os = "linux"
|
|
|
|
is_clang = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-12-28 10:49:32 +04:00
|
|
|
gcc_toolchain("arm") {
|
2015-09-22 06:25:43 +03:00
|
|
|
toolprefix = "arm-linux-gnueabihf-"
|
|
|
|
|
2015-09-25 07:43:41 +03:00
|
|
|
cc = "${toolprefix}gcc"
|
|
|
|
cxx = "${toolprefix}g++"
|
2014-07-18 05:51:08 +04:00
|
|
|
|
2015-09-22 06:25:43 +03:00
|
|
|
ar = "${toolprefix}ar"
|
2013-12-28 10:49:32 +04:00
|
|
|
ld = cxx
|
2015-09-22 06:25:43 +03:00
|
|
|
readelf = "${toolprefix}readelf"
|
|
|
|
nm = "${toolprefix}nm"
|
2013-11-23 03:30:28 +04:00
|
|
|
|
2016-08-10 01:21:02 +03:00
|
|
|
toolchain_args = {
|
|
|
|
current_cpu = "arm"
|
|
|
|
current_os = "linux"
|
|
|
|
is_clang = false
|
|
|
|
}
|
2013-11-23 03:30:28 +04:00
|
|
|
}
|
|
|
|
|
2015-10-08 20:14:05 +03:00
|
|
|
clang_toolchain("clang_x86") {
|
2017-03-08 20:23:01 +03:00
|
|
|
# Output linker map files for binary size analysis.
|
|
|
|
enable_linker_map = true
|
|
|
|
|
2016-08-10 01:21:02 +03:00
|
|
|
toolchain_args = {
|
|
|
|
current_cpu = "x86"
|
|
|
|
current_os = "linux"
|
|
|
|
}
|
2013-12-28 10:49:32 +04:00
|
|
|
}
|
2013-11-21 02:21:03 +04:00
|
|
|
|
2016-07-14 23:08:37 +03:00
|
|
|
clang_toolchain("clang_x86_v8_arm") {
|
2016-08-10 01:21:02 +03:00
|
|
|
toolchain_args = {
|
|
|
|
current_cpu = "x86"
|
|
|
|
v8_current_cpu = "arm"
|
|
|
|
current_os = "linux"
|
|
|
|
}
|
2016-07-14 23:08:37 +03:00
|
|
|
}
|
|
|
|
|
2016-07-19 04:54:15 +03:00
|
|
|
clang_toolchain("clang_x86_v8_mipsel") {
|
2016-08-10 01:21:02 +03:00
|
|
|
toolchain_args = {
|
|
|
|
current_cpu = "x86"
|
|
|
|
v8_current_cpu = "mipsel"
|
|
|
|
current_os = "linux"
|
|
|
|
}
|
2016-07-19 04:54:15 +03:00
|
|
|
}
|
|
|
|
|
2017-05-30 15:57:49 +03:00
|
|
|
clang_toolchain("clang_x86_v8_mips") {
|
|
|
|
toolchain_args = {
|
|
|
|
current_cpu = "x86"
|
|
|
|
v8_current_cpu = "mips"
|
|
|
|
current_os = "linux"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-12 00:27:10 +04:00
|
|
|
gcc_toolchain("x86") {
|
2015-09-25 07:43:41 +03:00
|
|
|
cc = "gcc"
|
|
|
|
cxx = "g++"
|
2014-07-12 00:27:10 +04:00
|
|
|
|
2015-05-15 00:38:47 +03:00
|
|
|
readelf = "readelf"
|
|
|
|
nm = "nm"
|
2014-07-12 00:27:10 +04:00
|
|
|
ar = "ar"
|
|
|
|
ld = cxx
|
|
|
|
|
2017-03-08 20:23:01 +03:00
|
|
|
# Output linker map files for binary size analysis.
|
|
|
|
enable_linker_map = true
|
|
|
|
|
2016-08-10 01:21:02 +03:00
|
|
|
toolchain_args = {
|
|
|
|
current_cpu = "x86"
|
|
|
|
current_os = "linux"
|
|
|
|
is_clang = false
|
|
|
|
}
|
2014-07-12 00:27:10 +04:00
|
|
|
}
|
|
|
|
|
2015-10-08 20:14:05 +03:00
|
|
|
clang_toolchain("clang_x64") {
|
2017-03-08 20:23:01 +03:00
|
|
|
# Output linker map files for binary size analysis.
|
|
|
|
enable_linker_map = true
|
|
|
|
|
2016-08-10 01:21:02 +03:00
|
|
|
toolchain_args = {
|
|
|
|
current_cpu = "x64"
|
|
|
|
current_os = "linux"
|
|
|
|
}
|
2014-07-12 00:27:10 +04:00
|
|
|
}
|
|
|
|
|
2016-07-14 23:08:37 +03:00
|
|
|
clang_toolchain("clang_x64_v8_arm64") {
|
2016-08-10 01:21:02 +03:00
|
|
|
toolchain_args = {
|
|
|
|
current_cpu = "x64"
|
|
|
|
v8_current_cpu = "arm64"
|
|
|
|
current_os = "linux"
|
|
|
|
}
|
2016-07-14 23:08:37 +03:00
|
|
|
}
|
|
|
|
|
2016-07-19 04:54:15 +03:00
|
|
|
clang_toolchain("clang_x64_v8_mips64el") {
|
2016-08-10 01:21:02 +03:00
|
|
|
toolchain_args = {
|
|
|
|
current_cpu = "x64"
|
|
|
|
v8_current_cpu = "mips64el"
|
|
|
|
current_os = "linux"
|
|
|
|
}
|
2016-07-19 04:54:15 +03:00
|
|
|
}
|
|
|
|
|
2017-05-30 15:57:49 +03:00
|
|
|
clang_toolchain("clang_x64_v8_mips64") {
|
|
|
|
toolchain_args = {
|
|
|
|
current_cpu = "x64"
|
|
|
|
v8_current_cpu = "mips64"
|
|
|
|
current_os = "linux"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-12 00:27:10 +04:00
|
|
|
gcc_toolchain("x64") {
|
2015-09-25 07:43:41 +03:00
|
|
|
cc = "gcc"
|
|
|
|
cxx = "g++"
|
2014-02-03 16:11:38 +04:00
|
|
|
|
2015-05-15 00:38:47 +03:00
|
|
|
readelf = "readelf"
|
|
|
|
nm = "nm"
|
2013-12-28 10:49:32 +04:00
|
|
|
ar = "ar"
|
|
|
|
ld = cxx
|
|
|
|
|
2017-03-08 20:23:01 +03:00
|
|
|
# Output linker map files for binary size analysis.
|
|
|
|
enable_linker_map = true
|
|
|
|
|
2016-08-10 01:21:02 +03:00
|
|
|
toolchain_args = {
|
|
|
|
current_cpu = "x64"
|
|
|
|
current_os = "linux"
|
|
|
|
is_clang = false
|
|
|
|
}
|
2013-11-21 02:21:03 +04:00
|
|
|
}
|
2014-01-16 10:34:56 +04:00
|
|
|
|
2015-11-27 18:05:28 +03:00
|
|
|
clang_toolchain("clang_mipsel") {
|
2016-08-10 01:21:02 +03:00
|
|
|
toolchain_args = {
|
|
|
|
current_cpu = "mipsel"
|
|
|
|
current_os = "linux"
|
|
|
|
}
|
2015-11-27 18:05:28 +03:00
|
|
|
}
|
|
|
|
|
2017-07-13 09:32:56 +03:00
|
|
|
clang_toolchain("clang_mips64el") {
|
|
|
|
toolchain_args = {
|
|
|
|
current_cpu = "mips64el"
|
|
|
|
current_os = "linux"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-01-16 10:34:56 +04:00
|
|
|
gcc_toolchain("mipsel") {
|
2017-10-06 01:39:18 +03:00
|
|
|
toolprefix = "mipsel-linux-gnu-"
|
|
|
|
|
|
|
|
cc = "${toolprefix}gcc"
|
|
|
|
cxx = " ${toolprefix}g++"
|
|
|
|
ar = "${toolprefix}ar"
|
2014-01-16 10:34:56 +04:00
|
|
|
ld = cxx
|
2017-10-06 01:39:18 +03:00
|
|
|
readelf = "${toolprefix}readelf"
|
|
|
|
nm = "${toolprefix}nm"
|
2014-01-16 10:34:56 +04:00
|
|
|
|
2016-08-10 01:21:02 +03:00
|
|
|
toolchain_args = {
|
|
|
|
cc_wrapper = ""
|
|
|
|
current_cpu = "mipsel"
|
|
|
|
current_os = "linux"
|
|
|
|
is_clang = false
|
|
|
|
use_goma = false
|
|
|
|
}
|
2014-01-16 10:34:56 +04:00
|
|
|
}
|
2017-05-10 07:55:56 +03:00
|
|
|
|
2017-07-13 09:32:56 +03:00
|
|
|
gcc_toolchain("mips64el") {
|
2017-10-06 01:39:18 +03:00
|
|
|
toolprefix = "mips64el-linux-gnuabi64-"
|
|
|
|
|
|
|
|
cc = "${toolprefix}gcc"
|
|
|
|
cxx = "${toolprefix}g++"
|
|
|
|
ar = "${toolprefix}ar"
|
2017-07-13 09:32:56 +03:00
|
|
|
ld = cxx
|
2017-10-06 01:39:18 +03:00
|
|
|
readelf = "${toolprefix}readelf"
|
|
|
|
nm = "${toolprefix}nm"
|
2017-07-13 09:32:56 +03:00
|
|
|
|
|
|
|
toolchain_args = {
|
|
|
|
cc_wrapper = ""
|
|
|
|
current_cpu = "mips64el"
|
|
|
|
current_os = "linux"
|
|
|
|
is_clang = false
|
|
|
|
use_goma = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-11 04:40:04 +03:00
|
|
|
clang_toolchain("clang_s390x") {
|
|
|
|
toolchain_args = {
|
|
|
|
current_cpu = "s390x"
|
|
|
|
current_os = "linux"
|
|
|
|
is_clang = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-05-10 07:55:56 +03:00
|
|
|
gcc_toolchain("s390x") {
|
|
|
|
cc = "gcc"
|
|
|
|
cxx = "g++"
|
|
|
|
|
|
|
|
readelf = "readelf"
|
|
|
|
nm = "nm"
|
|
|
|
ar = "ar"
|
|
|
|
ld = cxx
|
|
|
|
|
|
|
|
toolchain_args = {
|
|
|
|
current_cpu = "s390x"
|
|
|
|
current_os = "linux"
|
|
|
|
is_clang = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
gcc_toolchain("ppc64") {
|
|
|
|
cc = "gcc"
|
|
|
|
cxx = "g++"
|
|
|
|
|
|
|
|
readelf = "readelf"
|
|
|
|
nm = "nm"
|
|
|
|
ar = "ar"
|
|
|
|
ld = cxx
|
|
|
|
|
|
|
|
toolchain_args = {
|
|
|
|
current_cpu = "ppc64"
|
|
|
|
current_os = "linux"
|
|
|
|
is_clang = false
|
|
|
|
}
|
|
|
|
}
|
2017-05-30 15:57:49 +03:00
|
|
|
|
|
|
|
gcc_toolchain("mips") {
|
2017-10-06 01:39:18 +03:00
|
|
|
toolprefix = "mips-linux-gnu-"
|
2017-05-30 15:57:49 +03:00
|
|
|
|
2017-10-06 01:39:18 +03:00
|
|
|
cc = "${toolprefix}gcc"
|
|
|
|
cxx = "${toolprefix}g++"
|
|
|
|
|
|
|
|
readelf = "${toolprefix}readelf"
|
|
|
|
nm = "${toolprefix}nm"
|
|
|
|
ar = "${toolprefix}ar"
|
2017-05-30 15:57:49 +03:00
|
|
|
ld = cxx
|
|
|
|
|
|
|
|
toolchain_args = {
|
|
|
|
current_cpu = "mips"
|
|
|
|
current_os = "linux"
|
|
|
|
is_clang = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
gcc_toolchain("mips64") {
|
2017-10-06 01:39:18 +03:00
|
|
|
toolprefix = "mips64-linux-gnuabi64-"
|
2017-05-30 15:57:49 +03:00
|
|
|
|
2017-10-06 01:39:18 +03:00
|
|
|
cc = "${toolprefix}gcc"
|
|
|
|
cxx = "${toolprefix}g++"
|
|
|
|
|
|
|
|
readelf = "${toolprefix}readelf"
|
|
|
|
nm = "${toolprefix}nm"
|
|
|
|
ar = "${toolprefix}ar"
|
2017-05-30 15:57:49 +03:00
|
|
|
ld = cxx
|
|
|
|
|
|
|
|
toolchain_args = {
|
|
|
|
current_cpu = "mips64"
|
|
|
|
current_os = "linux"
|
|
|
|
is_clang = false
|
|
|
|
}
|
|
|
|
}
|