2015-11-21 00:35:26 +01:00
|
|
|
// Copyright 2015 Google Inc. 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.
|
|
|
|
|
2016-07-29 22:44:28 +02:00
|
|
|
package config
|
2015-01-31 02:27:36 +01:00
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"strings"
|
|
|
|
|
2016-05-19 00:37:25 +02:00
|
|
|
"android/soong/android"
|
2015-01-31 02:27:36 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2015-11-24 01:11:30 +01:00
|
|
|
armToolchainCflags = []string{
|
2016-05-19 07:52:25 +02:00
|
|
|
"-msoft-float",
|
2015-11-24 01:11:30 +01:00
|
|
|
}
|
|
|
|
|
2017-11-18 01:10:01 +01:00
|
|
|
armCflags = []string{
|
|
|
|
"-fomit-frame-pointer",
|
|
|
|
}
|
2015-01-31 02:27:36 +01:00
|
|
|
|
2017-11-06 22:59:48 +01:00
|
|
|
armCppflags = []string{}
|
2015-01-31 02:27:36 +01:00
|
|
|
|
|
|
|
armLdflags = []string{
|
|
|
|
"-Wl,--hash-style=gnu",
|
2017-06-27 04:22:02 +02:00
|
|
|
"-Wl,-m,armelf",
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|
|
|
|
|
2021-07-15 02:03:16 +02:00
|
|
|
armLldflags = armLdflags
|
2018-04-03 20:33:34 +02:00
|
|
|
|
2015-01-31 02:27:36 +01:00
|
|
|
armArmCflags = []string{
|
|
|
|
"-fstrict-aliasing",
|
|
|
|
}
|
|
|
|
|
|
|
|
armThumbCflags = []string{
|
|
|
|
"-mthumb",
|
|
|
|
"-Os",
|
|
|
|
}
|
|
|
|
|
2021-07-15 02:03:16 +02:00
|
|
|
armArchVariantCflags = map[string][]string{
|
2019-02-19 22:53:01 +01:00
|
|
|
"armv7-a": []string{
|
|
|
|
"-march=armv7-a",
|
|
|
|
"-mfloat-abi=softfp",
|
|
|
|
"-mfpu=vfpv3-d16",
|
|
|
|
},
|
2015-01-31 02:27:36 +01:00
|
|
|
"armv7-a-neon": []string{
|
2017-10-05 12:28:57 +02:00
|
|
|
"-march=armv7-a",
|
2015-01-31 02:27:36 +01:00
|
|
|
"-mfloat-abi=softfp",
|
|
|
|
"-mfpu=neon",
|
|
|
|
},
|
2017-08-23 12:57:17 +02:00
|
|
|
"armv8-a": []string{
|
|
|
|
"-march=armv8-a",
|
|
|
|
"-mfloat-abi=softfp",
|
|
|
|
"-mfpu=neon-fp-armv8",
|
|
|
|
},
|
2018-10-31 08:26:32 +01:00
|
|
|
"armv8-2a": []string{
|
|
|
|
"-march=armv8.2-a",
|
|
|
|
"-mfloat-abi=softfp",
|
|
|
|
"-mfpu=neon-fp-armv8",
|
|
|
|
},
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|
|
|
|
|
2021-07-15 02:03:16 +02:00
|
|
|
armCpuVariantCflags = map[string][]string{
|
2015-01-31 02:27:36 +01:00
|
|
|
"cortex-a7": []string{
|
|
|
|
"-mcpu=cortex-a7",
|
2017-04-07 04:25:34 +02:00
|
|
|
"-mfpu=neon-vfpv4",
|
2016-03-30 00:47:08 +02:00
|
|
|
// Fake an ARM compiler flag as these processors support LPAE which GCC/clang
|
|
|
|
// don't advertise.
|
|
|
|
// TODO This is a hack and we need to add it for each processor that supports LPAE until some
|
|
|
|
// better solution comes around. See Bug 27340895
|
|
|
|
"-D__ARM_FEATURE_LPAE=1",
|
2015-01-31 02:27:36 +01:00
|
|
|
},
|
|
|
|
"cortex-a8": []string{
|
|
|
|
"-mcpu=cortex-a8",
|
|
|
|
},
|
|
|
|
"cortex-a15": []string{
|
|
|
|
"-mcpu=cortex-a15",
|
2017-04-07 02:47:23 +02:00
|
|
|
"-mfpu=neon-vfpv4",
|
2015-01-31 02:27:36 +01:00
|
|
|
// Fake an ARM compiler flag as these processors support LPAE which GCC/clang
|
|
|
|
// don't advertise.
|
2016-03-30 00:47:08 +02:00
|
|
|
// TODO This is a hack and we need to add it for each processor that supports LPAE until some
|
|
|
|
// better solution comes around. See Bug 27340895
|
2015-01-31 02:27:36 +01:00
|
|
|
"-D__ARM_FEATURE_LPAE=1",
|
|
|
|
},
|
2017-05-08 21:08:40 +02:00
|
|
|
"cortex-a53": []string{
|
|
|
|
"-mcpu=cortex-a53",
|
|
|
|
"-mfpu=neon-fp-armv8",
|
|
|
|
// Fake an ARM compiler flag as these processors support LPAE which GCC/clang
|
|
|
|
// don't advertise.
|
|
|
|
// TODO This is a hack and we need to add it for each processor that supports LPAE until some
|
|
|
|
// better solution comes around. See Bug 27340895
|
|
|
|
"-D__ARM_FEATURE_LPAE=1",
|
|
|
|
},
|
2018-04-24 03:15:25 +02:00
|
|
|
"cortex-a55": []string{
|
2018-06-16 00:46:11 +02:00
|
|
|
"-mcpu=cortex-a55",
|
2018-04-24 03:15:25 +02:00
|
|
|
"-mfpu=neon-fp-armv8",
|
|
|
|
// Fake an ARM compiler flag as these processors support LPAE which GCC/clang
|
|
|
|
// don't advertise.
|
|
|
|
// TODO This is a hack and we need to add it for each processor that supports LPAE until some
|
|
|
|
// better solution comes around. See Bug 27340895
|
|
|
|
"-D__ARM_FEATURE_LPAE=1",
|
|
|
|
},
|
|
|
|
"cortex-a75": []string{
|
2018-06-16 00:46:11 +02:00
|
|
|
"-mcpu=cortex-a55",
|
2018-04-24 03:15:25 +02:00
|
|
|
"-mfpu=neon-fp-armv8",
|
|
|
|
// Fake an ARM compiler flag as these processors support LPAE which GCC/clang
|
|
|
|
// don't advertise.
|
|
|
|
// TODO This is a hack and we need to add it for each processor that supports LPAE until some
|
|
|
|
// better solution comes around. See Bug 27340895
|
|
|
|
"-D__ARM_FEATURE_LPAE=1",
|
|
|
|
},
|
2018-10-09 23:27:28 +02:00
|
|
|
"cortex-a76": []string{
|
|
|
|
"-mcpu=cortex-a55",
|
|
|
|
"-mfpu=neon-fp-armv8",
|
|
|
|
// Fake an ARM compiler flag as these processors support LPAE which GCC/clang
|
|
|
|
// don't advertise.
|
|
|
|
// TODO This is a hack and we need to add it for each processor that supports LPAE until some
|
|
|
|
// better solution comes around. See Bug 27340895
|
|
|
|
"-D__ARM_FEATURE_LPAE=1",
|
|
|
|
},
|
2016-05-09 22:39:58 +02:00
|
|
|
"krait": []string{
|
2018-10-08 06:06:36 +02:00
|
|
|
"-mcpu=krait",
|
2017-04-07 02:38:26 +02:00
|
|
|
"-mfpu=neon-vfpv4",
|
2016-05-09 22:39:58 +02:00
|
|
|
// Fake an ARM compiler flag as these processors support LPAE which GCC/clang
|
|
|
|
// don't advertise.
|
|
|
|
// TODO This is a hack and we need to add it for each processor that supports LPAE until some
|
|
|
|
// better solution comes around. See Bug 27340895
|
|
|
|
"-D__ARM_FEATURE_LPAE=1",
|
|
|
|
},
|
2016-08-20 00:14:56 +02:00
|
|
|
"kryo": []string{
|
2017-11-21 07:29:58 +01:00
|
|
|
// Use cortex-a53 because the GNU assembler doesn't recognize -mcpu=kryo
|
|
|
|
// even though clang does.
|
|
|
|
"-mcpu=cortex-a53",
|
2017-04-07 02:28:05 +02:00
|
|
|
"-mfpu=neon-fp-armv8",
|
2016-08-20 00:14:56 +02:00
|
|
|
// Fake an ARM compiler flag as these processors support LPAE which GCC/clang
|
|
|
|
// don't advertise.
|
|
|
|
// TODO This is a hack and we need to add it for each processor that supports LPAE until some
|
|
|
|
// better solution comes around. See Bug 27340895
|
|
|
|
"-D__ARM_FEATURE_LPAE=1",
|
|
|
|
},
|
2018-11-15 16:21:51 +01:00
|
|
|
"kryo385": []string{
|
|
|
|
// Use cortex-a53 because kryo385 is not supported in GCC/clang.
|
|
|
|
"-mcpu=cortex-a53",
|
|
|
|
// Fake an ARM compiler flag as these processors support LPAE which GCC/clang
|
|
|
|
// don't advertise.
|
|
|
|
// TODO This is a hack and we need to add it for each processor that supports LPAE until some
|
|
|
|
// better solution comes around. See Bug 27340895
|
|
|
|
"-D__ARM_FEATURE_LPAE=1",
|
|
|
|
},
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|
|
|
|
)
|
|
|
|
|
2015-12-07 21:30:44 +01:00
|
|
|
const (
|
2021-05-20 15:40:14 +02:00
|
|
|
name = "arm"
|
2015-12-07 21:30:44 +01:00
|
|
|
armGccVersion = "4.9"
|
2021-05-20 15:40:14 +02:00
|
|
|
gccTriple = "arm-linux-androideabi"
|
|
|
|
clangTriple = "armv7a-linux-androideabi"
|
2015-12-07 21:30:44 +01:00
|
|
|
)
|
|
|
|
|
2015-01-31 02:27:36 +01:00
|
|
|
func init() {
|
2015-12-07 21:30:44 +01:00
|
|
|
pctx.StaticVariable("armGccVersion", armGccVersion)
|
2015-01-31 02:27:36 +01:00
|
|
|
|
2021-05-20 15:40:14 +02:00
|
|
|
pctx.SourcePathVariable("ArmGccRoot", "prebuilts/gcc/${HostPrebuiltTag}/arm/arm-linux-androideabi-${armGccVersion}")
|
2015-01-31 02:27:36 +01:00
|
|
|
|
2021-05-20 15:40:14 +02:00
|
|
|
// Just exported. Not created as a Ninja static variable.
|
|
|
|
exportedStringVars.Set("ArmClangTriple", clangTriple)
|
|
|
|
|
|
|
|
exportStringListStaticVariable("ArmLdflags", armLdflags)
|
|
|
|
exportStringListStaticVariable("ArmLldflags", armLldflags)
|
2015-01-31 02:27:36 +01:00
|
|
|
|
|
|
|
// Clang cflags
|
2021-07-15 03:45:05 +02:00
|
|
|
exportStringListStaticVariable("ArmToolchainCflags", armToolchainCflags)
|
|
|
|
exportStringListStaticVariable("ArmCflags", armCflags)
|
|
|
|
exportStringListStaticVariable("ArmCppflags", armCppflags)
|
2015-01-31 02:27:36 +01:00
|
|
|
|
2015-11-03 23:27:00 +01:00
|
|
|
// Clang ARM vs. Thumb instruction set cflags
|
2021-07-15 03:45:05 +02:00
|
|
|
exportStringListStaticVariable("ArmArmCflags", armArmCflags)
|
|
|
|
exportStringListStaticVariable("ArmThumbCflags", armThumbCflags)
|
2015-11-03 23:27:00 +01:00
|
|
|
|
2021-08-02 16:41:48 +02:00
|
|
|
exportedStringListDictVars.Set("ArmArchVariantCflags", armArchVariantCflags)
|
|
|
|
exportedStringListDictVars.Set("ArmCpuVariantCflags", armCpuVariantCflags)
|
|
|
|
|
2016-01-15 00:17:19 +01:00
|
|
|
// Clang arch variant cflags
|
2021-07-15 03:45:05 +02:00
|
|
|
exportStringListStaticVariable("ArmArmv7ACflags", armArchVariantCflags["armv7-a"])
|
|
|
|
exportStringListStaticVariable("ArmArmv7ANeonCflags", armArchVariantCflags["armv7-a-neon"])
|
|
|
|
exportStringListStaticVariable("ArmArmv8ACflags", armArchVariantCflags["armv8-a"])
|
|
|
|
exportStringListStaticVariable("ArmArmv82ACflags", armArchVariantCflags["armv8-2a"])
|
2015-01-31 02:27:36 +01:00
|
|
|
|
|
|
|
// Clang cpu variant cflags
|
2021-07-15 03:45:05 +02:00
|
|
|
exportStringListStaticVariable("ArmGenericCflags", armCpuVariantCflags[""])
|
|
|
|
exportStringListStaticVariable("ArmCortexA7Cflags", armCpuVariantCflags["cortex-a7"])
|
|
|
|
exportStringListStaticVariable("ArmCortexA8Cflags", armCpuVariantCflags["cortex-a8"])
|
|
|
|
exportStringListStaticVariable("ArmCortexA15Cflags", armCpuVariantCflags["cortex-a15"])
|
|
|
|
exportStringListStaticVariable("ArmCortexA53Cflags", armCpuVariantCflags["cortex-a53"])
|
|
|
|
exportStringListStaticVariable("ArmCortexA55Cflags", armCpuVariantCflags["cortex-a55"])
|
|
|
|
exportStringListStaticVariable("ArmKraitCflags", armCpuVariantCflags["krait"])
|
|
|
|
exportStringListStaticVariable("ArmKryoCflags", armCpuVariantCflags["kryo"])
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
2021-07-15 02:03:16 +02:00
|
|
|
armArchVariantCflagsVar = map[string]string{
|
2021-07-15 03:45:05 +02:00
|
|
|
"armv7-a": "${config.ArmArmv7ACflags}",
|
|
|
|
"armv7-a-neon": "${config.ArmArmv7ANeonCflags}",
|
|
|
|
"armv8-a": "${config.ArmArmv8ACflags}",
|
|
|
|
"armv8-2a": "${config.ArmArmv82ACflags}",
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|
|
|
|
|
2021-07-15 02:03:16 +02:00
|
|
|
armCpuVariantCflagsVar = map[string]string{
|
2021-07-15 03:45:05 +02:00
|
|
|
"": "${config.ArmGenericCflags}",
|
|
|
|
"cortex-a7": "${config.ArmCortexA7Cflags}",
|
|
|
|
"cortex-a8": "${config.ArmCortexA8Cflags}",
|
|
|
|
"cortex-a15": "${config.ArmCortexA15Cflags}",
|
|
|
|
"cortex-a53": "${config.ArmCortexA53Cflags}",
|
|
|
|
"cortex-a53.a57": "${config.ArmCortexA53Cflags}",
|
|
|
|
"cortex-a55": "${config.ArmCortexA55Cflags}",
|
|
|
|
"cortex-a72": "${config.ArmCortexA53Cflags}",
|
|
|
|
"cortex-a73": "${config.ArmCortexA53Cflags}",
|
|
|
|
"cortex-a75": "${config.ArmCortexA55Cflags}",
|
|
|
|
"cortex-a76": "${config.ArmCortexA55Cflags}",
|
|
|
|
"krait": "${config.ArmKraitCflags}",
|
|
|
|
"kryo": "${config.ArmKryoCflags}",
|
|
|
|
"kryo385": "${config.ArmCortexA53Cflags}",
|
|
|
|
"exynos-m1": "${config.ArmCortexA53Cflags}",
|
|
|
|
"exynos-m2": "${config.ArmCortexA53Cflags}",
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
type toolchainArm struct {
|
2021-06-22 02:28:25 +02:00
|
|
|
toolchainBionic
|
2015-01-31 02:27:36 +01:00
|
|
|
toolchain32Bit
|
2021-07-15 02:03:16 +02:00
|
|
|
ldflags string
|
|
|
|
lldflags string
|
|
|
|
toolchainCflags string
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|
|
|
|
|
2015-03-19 07:38:50 +01:00
|
|
|
func (t *toolchainArm) Name() string {
|
2021-05-20 15:40:14 +02:00
|
|
|
return name
|
2015-03-19 07:38:50 +01:00
|
|
|
}
|
|
|
|
|
2015-01-31 02:27:36 +01:00
|
|
|
func (t *toolchainArm) GccRoot() string {
|
2016-07-29 22:44:28 +02:00
|
|
|
return "${config.ArmGccRoot}"
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (t *toolchainArm) GccTriple() string {
|
2021-05-20 15:40:14 +02:00
|
|
|
return gccTriple
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|
|
|
|
|
2015-03-19 07:38:50 +01:00
|
|
|
func (t *toolchainArm) GccVersion() string {
|
2015-12-07 21:30:44 +01:00
|
|
|
return armGccVersion
|
2015-03-19 07:38:50 +01:00
|
|
|
}
|
|
|
|
|
2015-01-31 02:27:36 +01:00
|
|
|
func (t *toolchainArm) IncludeFlags() string {
|
2020-04-08 02:06:07 +02:00
|
|
|
return ""
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (t *toolchainArm) ClangTriple() string {
|
2018-03-16 02:44:57 +01:00
|
|
|
// http://b/72619014 work around llvm LTO bug.
|
2021-05-20 15:40:14 +02:00
|
|
|
return clangTriple
|
2018-03-16 02:44:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (t *toolchainArm) ndkTriple() string {
|
|
|
|
// Use current NDK include path, while ClangTriple is changed.
|
2016-07-20 23:44:26 +02:00
|
|
|
return t.GccTriple()
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|
|
|
|
|
2021-07-15 02:03:16 +02:00
|
|
|
func (t *toolchainArm) ToolchainCflags() string {
|
|
|
|
return t.toolchainCflags
|
2015-11-24 01:11:30 +01:00
|
|
|
}
|
|
|
|
|
2021-07-15 02:03:16 +02:00
|
|
|
func (t *toolchainArm) Cflags() string {
|
2021-07-15 03:45:05 +02:00
|
|
|
return "${config.ArmCflags}"
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|
|
|
|
|
2021-07-15 02:03:16 +02:00
|
|
|
func (t *toolchainArm) Cppflags() string {
|
2021-07-15 03:45:05 +02:00
|
|
|
return "${config.ArmCppflags}"
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|
|
|
|
|
2021-07-15 02:03:16 +02:00
|
|
|
func (t *toolchainArm) Ldflags() string {
|
2015-01-31 02:27:36 +01:00
|
|
|
return t.ldflags
|
|
|
|
}
|
|
|
|
|
2021-07-15 02:03:16 +02:00
|
|
|
func (t *toolchainArm) Lldflags() string {
|
2018-04-03 20:33:34 +02:00
|
|
|
return t.lldflags // TODO: handle V8 cases
|
|
|
|
}
|
|
|
|
|
2021-07-15 02:03:16 +02:00
|
|
|
func (t *toolchainArm) InstructionSetFlags(isa string) (string, error) {
|
2015-11-03 23:27:00 +01:00
|
|
|
switch isa {
|
|
|
|
case "arm":
|
2021-07-15 03:45:05 +02:00
|
|
|
return "${config.ArmArmCflags}", nil
|
2015-11-03 23:27:00 +01:00
|
|
|
case "thumb", "":
|
2021-07-15 03:45:05 +02:00
|
|
|
return "${config.ArmThumbCflags}", nil
|
2015-11-03 23:27:00 +01:00
|
|
|
default:
|
2021-07-15 02:03:16 +02:00
|
|
|
return t.toolchainBase.InstructionSetFlags(isa)
|
2015-11-03 23:27:00 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-31 23:27:44 +02:00
|
|
|
func (toolchainArm) LibclangRuntimeLibraryArch() string {
|
2021-05-20 15:40:14 +02:00
|
|
|
return name
|
2016-01-06 23:41:07 +01:00
|
|
|
}
|
|
|
|
|
2016-05-19 00:37:25 +02:00
|
|
|
func armToolchainFactory(arch android.Arch) Toolchain {
|
2015-04-28 22:15:59 +02:00
|
|
|
var fixCortexA8 string
|
2021-07-15 02:03:16 +02:00
|
|
|
toolchainCflags := make([]string, 2, 3)
|
2016-01-15 00:17:19 +01:00
|
|
|
|
2021-07-15 03:45:05 +02:00
|
|
|
toolchainCflags[0] = "${config.ArmToolchainCflags}"
|
2021-07-15 02:03:16 +02:00
|
|
|
toolchainCflags[1] = armArchVariantCflagsVar[arch.ArchVariant]
|
2016-01-15 00:17:19 +01:00
|
|
|
|
2021-07-15 02:03:16 +02:00
|
|
|
toolchainCflags = append(toolchainCflags,
|
|
|
|
variantOrDefault(armCpuVariantCflagsVar, arch.CpuVariant))
|
2017-08-23 12:57:17 +02:00
|
|
|
|
2016-01-15 00:17:19 +01:00
|
|
|
switch arch.ArchVariant {
|
|
|
|
case "armv7-a-neon":
|
|
|
|
switch arch.CpuVariant {
|
|
|
|
case "cortex-a8", "":
|
|
|
|
// Generic ARM might be a Cortex A8 -- better safe than sorry
|
|
|
|
fixCortexA8 = "-Wl,--fix-cortex-a8"
|
|
|
|
default:
|
|
|
|
fixCortexA8 = "-Wl,--no-fix-cortex-a8"
|
|
|
|
}
|
2019-02-19 22:53:01 +01:00
|
|
|
case "armv7-a":
|
|
|
|
fixCortexA8 = "-Wl,--fix-cortex-a8"
|
2018-10-31 08:26:32 +01:00
|
|
|
case "armv8-a", "armv8-2a":
|
|
|
|
// Nothing extra for armv8-a/armv8-2a
|
2015-04-28 22:15:59 +02:00
|
|
|
default:
|
2016-01-15 00:17:19 +01:00
|
|
|
panic(fmt.Sprintf("Unknown ARM architecture version: %q", arch.ArchVariant))
|
2015-04-28 22:15:59 +02:00
|
|
|
}
|
|
|
|
|
2015-01-31 02:27:36 +01:00
|
|
|
return &toolchainArm{
|
|
|
|
ldflags: strings.Join([]string{
|
2016-07-29 22:44:28 +02:00
|
|
|
"${config.ArmLdflags}",
|
2015-04-28 22:15:59 +02:00
|
|
|
fixCortexA8,
|
2015-01-31 02:27:36 +01:00
|
|
|
}, " "),
|
2021-07-15 02:03:16 +02:00
|
|
|
lldflags: "${config.ArmLldflags}",
|
|
|
|
toolchainCflags: strings.Join(toolchainCflags, " "),
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2016-06-02 02:09:44 +02:00
|
|
|
registerToolchainFactory(android.Android, android.Arm, armToolchainFactory)
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|