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.
|
|
|
|
|
2015-01-31 02:27:36 +01:00
|
|
|
package cc
|
|
|
|
|
|
|
|
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{
|
|
|
|
"-mthumb-interwork",
|
2016-05-19 07:52:25 +02:00
|
|
|
"-msoft-float",
|
2015-11-24 01:11:30 +01:00
|
|
|
}
|
|
|
|
|
2015-01-31 02:27:36 +01:00
|
|
|
armCflags = []string{
|
|
|
|
"-fno-exceptions", // from build/core/combo/select.mk
|
|
|
|
"-Wno-multichar", // from build/core/combo/select.mk
|
|
|
|
"-ffunction-sections",
|
|
|
|
"-fdata-sections",
|
|
|
|
"-funwind-tables",
|
2016-01-13 01:22:40 +01:00
|
|
|
"-fstack-protector-strong",
|
2015-01-31 02:27:36 +01:00
|
|
|
"-Wa,--noexecstack",
|
|
|
|
"-Werror=format-security",
|
|
|
|
"-D_FORTIFY_SOURCE=2",
|
|
|
|
"-fno-short-enums",
|
|
|
|
"-no-canonical-prefixes",
|
|
|
|
"-fno-canonical-system-headers",
|
|
|
|
|
|
|
|
"-fno-builtin-sin",
|
|
|
|
"-fno-strict-volatile-bitfields",
|
|
|
|
|
|
|
|
// TARGET_RELEASE_CFLAGS
|
|
|
|
"-DNDEBUG",
|
|
|
|
"-g",
|
|
|
|
"-Wstrict-aliasing=2",
|
|
|
|
"-fgcse-after-reload",
|
|
|
|
"-frerun-cse-after-loop",
|
|
|
|
"-frename-registers",
|
|
|
|
}
|
|
|
|
|
|
|
|
armCppflags = []string{
|
|
|
|
"-fvisibility-inlines-hidden",
|
|
|
|
}
|
|
|
|
|
|
|
|
armLdflags = []string{
|
|
|
|
"-Wl,-z,noexecstack",
|
|
|
|
"-Wl,-z,relro",
|
|
|
|
"-Wl,-z,now",
|
|
|
|
"-Wl,--build-id=md5",
|
|
|
|
"-Wl,--warn-shared-textrel",
|
|
|
|
"-Wl,--fatal-warnings",
|
2015-03-17 00:12:05 +01:00
|
|
|
"-Wl,--icf=safe",
|
2015-01-31 02:27:36 +01:00
|
|
|
"-Wl,--hash-style=gnu",
|
2015-12-09 22:05:28 +01:00
|
|
|
"-Wl,--no-undefined-version",
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
armArmCflags = []string{
|
|
|
|
"-O2",
|
|
|
|
"-fomit-frame-pointer",
|
|
|
|
"-fstrict-aliasing",
|
|
|
|
"-funswitch-loops",
|
|
|
|
}
|
|
|
|
|
|
|
|
armThumbCflags = []string{
|
|
|
|
"-mthumb",
|
|
|
|
"-Os",
|
|
|
|
"-fomit-frame-pointer",
|
|
|
|
"-fno-strict-aliasing",
|
|
|
|
}
|
|
|
|
|
|
|
|
armArchVariantCflags = map[string][]string{
|
|
|
|
"armv5te": []string{
|
|
|
|
"-march=armv5te",
|
|
|
|
"-mtune=xscale",
|
|
|
|
"-D__ARM_ARCH_5__",
|
|
|
|
"-D__ARM_ARCH_5T__",
|
|
|
|
"-D__ARM_ARCH_5E__",
|
|
|
|
"-D__ARM_ARCH_5TE__",
|
|
|
|
},
|
|
|
|
"armv7-a": []string{
|
|
|
|
"-march=armv7-a",
|
|
|
|
"-mfloat-abi=softfp",
|
|
|
|
"-mfpu=vfpv3-d16",
|
|
|
|
},
|
|
|
|
"armv7-a-neon": []string{
|
|
|
|
"-mfloat-abi=softfp",
|
|
|
|
"-mfpu=neon",
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
armCpuVariantCflags = map[string][]string{
|
2016-01-15 00:17:19 +01:00
|
|
|
"": []string{
|
|
|
|
"-march=armv7-a",
|
|
|
|
},
|
2015-01-31 02:27:36 +01:00
|
|
|
"cortex-a7": []string{
|
|
|
|
"-mcpu=cortex-a7",
|
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",
|
|
|
|
// 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",
|
|
|
|
},
|
2016-05-09 22:39:58 +02:00
|
|
|
"krait": []string{
|
|
|
|
"-mcpu=cortex-a15",
|
|
|
|
// 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-07-13 22:28:18 +02:00
|
|
|
armClangCpuVariantCflags = copyVariantFlags(armCpuVariantCflags)
|
|
|
|
armClangArchVariantCflags = copyVariantFlags(armArchVariantCflags)
|
2015-01-31 02:27:36 +01:00
|
|
|
)
|
|
|
|
|
2015-12-07 21:30:44 +01:00
|
|
|
const (
|
|
|
|
armGccVersion = "4.9"
|
|
|
|
)
|
|
|
|
|
2015-01-31 02:27:36 +01:00
|
|
|
func init() {
|
|
|
|
replaceFirst := func(slice []string, from, to string) {
|
|
|
|
if slice[0] != from {
|
|
|
|
panic(fmt.Errorf("Expected %q, found %q", from, to))
|
|
|
|
}
|
|
|
|
|
|
|
|
slice[0] = to
|
|
|
|
}
|
|
|
|
|
|
|
|
replaceFirst(armClangArchVariantCflags["armv5te"], "-march=armv5te", "-march=armv5t")
|
2016-05-09 22:39:58 +02:00
|
|
|
replaceFirst(armClangCpuVariantCflags["krait"], "-mcpu=cortex-a15", "-mcpu=krait")
|
|
|
|
armClangCpuVariantCflags["krait"] = append(armClangCpuVariantCflags["krait"], "-mfpu=neon-vfpv4")
|
2015-01-31 02:27:36 +01:00
|
|
|
|
2015-12-07 21:30:44 +01:00
|
|
|
pctx.StaticVariable("armGccVersion", armGccVersion)
|
2015-01-31 02:27:36 +01:00
|
|
|
|
2015-09-24 00:26:20 +02:00
|
|
|
pctx.SourcePathVariable("armGccRoot",
|
2015-07-14 09:39:06 +02:00
|
|
|
"prebuilts/gcc/${HostPrebuiltTag}/arm/arm-linux-androideabi-${armGccVersion}")
|
2015-01-31 02:27:36 +01:00
|
|
|
|
|
|
|
pctx.StaticVariable("armGccTriple", "arm-linux-androideabi")
|
|
|
|
|
2015-11-24 01:11:30 +01:00
|
|
|
pctx.StaticVariable("armToolchainCflags", strings.Join(armToolchainCflags, " "))
|
2015-01-31 02:27:36 +01:00
|
|
|
pctx.StaticVariable("armCflags", strings.Join(armCflags, " "))
|
|
|
|
pctx.StaticVariable("armLdflags", strings.Join(armLdflags, " "))
|
|
|
|
pctx.StaticVariable("armCppflags", strings.Join(armCppflags, " "))
|
|
|
|
pctx.StaticVariable("armIncludeFlags", strings.Join([]string{
|
|
|
|
"-isystem ${LibcRoot}/arch-arm/include",
|
|
|
|
"-isystem ${LibcRoot}/include",
|
|
|
|
"-isystem ${LibcRoot}/kernel/uapi",
|
2016-05-18 23:32:32 +02:00
|
|
|
"-isystem ${LibcRoot}/kernel/common",
|
2015-01-31 02:27:36 +01:00
|
|
|
"-isystem ${LibcRoot}/kernel/uapi/asm-arm",
|
|
|
|
}, " "))
|
|
|
|
|
|
|
|
// Extended cflags
|
|
|
|
|
2015-03-18 20:28:32 +01:00
|
|
|
// ARM vs. Thumb instruction set flags
|
2015-01-31 02:27:36 +01:00
|
|
|
pctx.StaticVariable("armArmCflags", strings.Join(armArmCflags, " "))
|
|
|
|
pctx.StaticVariable("armThumbCflags", strings.Join(armThumbCflags, " "))
|
|
|
|
|
|
|
|
// Architecture variant cflags
|
|
|
|
pctx.StaticVariable("armArmv5TECflags", strings.Join(armArchVariantCflags["armv5te"], " "))
|
|
|
|
pctx.StaticVariable("armArmv7ACflags", strings.Join(armArchVariantCflags["armv7-a"], " "))
|
|
|
|
pctx.StaticVariable("armArmv7ANeonCflags", strings.Join(armArchVariantCflags["armv7-a-neon"], " "))
|
|
|
|
|
|
|
|
// Cpu variant cflags
|
2016-01-15 00:17:19 +01:00
|
|
|
pctx.StaticVariable("armGenericCflags", strings.Join(armCpuVariantCflags[""], " "))
|
2015-01-31 02:27:36 +01:00
|
|
|
pctx.StaticVariable("armCortexA7Cflags", strings.Join(armCpuVariantCflags["cortex-a7"], " "))
|
|
|
|
pctx.StaticVariable("armCortexA8Cflags", strings.Join(armCpuVariantCflags["cortex-a8"], " "))
|
|
|
|
pctx.StaticVariable("armCortexA15Cflags", strings.Join(armCpuVariantCflags["cortex-a15"], " "))
|
2016-05-09 22:39:58 +02:00
|
|
|
pctx.StaticVariable("armKraitCflags", strings.Join(armCpuVariantCflags["krait"], " "))
|
2015-01-31 02:27:36 +01:00
|
|
|
|
|
|
|
// Clang cflags
|
2015-11-24 01:11:30 +01:00
|
|
|
pctx.StaticVariable("armToolchainClangCflags", strings.Join(clangFilterUnknownCflags(armToolchainCflags), " "))
|
2015-01-31 02:27:36 +01:00
|
|
|
pctx.StaticVariable("armClangCflags", strings.Join(clangFilterUnknownCflags(armCflags), " "))
|
|
|
|
pctx.StaticVariable("armClangLdflags", strings.Join(clangFilterUnknownCflags(armLdflags), " "))
|
|
|
|
pctx.StaticVariable("armClangCppflags", strings.Join(clangFilterUnknownCflags(armCppflags), " "))
|
|
|
|
|
2015-11-03 23:27:00 +01:00
|
|
|
// Clang ARM vs. Thumb instruction set cflags
|
|
|
|
pctx.StaticVariable("armClangArmCflags", strings.Join(clangFilterUnknownCflags(armArmCflags), " "))
|
|
|
|
pctx.StaticVariable("armClangThumbCflags", strings.Join(clangFilterUnknownCflags(armThumbCflags), " "))
|
|
|
|
|
2016-01-15 00:17:19 +01:00
|
|
|
// Clang arch variant cflags
|
2015-01-31 02:27:36 +01:00
|
|
|
pctx.StaticVariable("armClangArmv5TECflags",
|
|
|
|
strings.Join(armClangArchVariantCflags["armv5te"], " "))
|
|
|
|
pctx.StaticVariable("armClangArmv7ACflags",
|
|
|
|
strings.Join(armClangArchVariantCflags["armv7-a"], " "))
|
|
|
|
pctx.StaticVariable("armClangArmv7ANeonCflags",
|
|
|
|
strings.Join(armClangArchVariantCflags["armv7-a-neon"], " "))
|
|
|
|
|
|
|
|
// Clang cpu variant cflags
|
2016-01-15 00:17:19 +01:00
|
|
|
pctx.StaticVariable("armClangGenericCflags",
|
|
|
|
strings.Join(armClangCpuVariantCflags[""], " "))
|
2015-01-31 02:27:36 +01:00
|
|
|
pctx.StaticVariable("armClangCortexA7Cflags",
|
|
|
|
strings.Join(armClangCpuVariantCflags["cortex-a7"], " "))
|
|
|
|
pctx.StaticVariable("armClangCortexA8Cflags",
|
|
|
|
strings.Join(armClangCpuVariantCflags["cortex-a8"], " "))
|
|
|
|
pctx.StaticVariable("armClangCortexA15Cflags",
|
|
|
|
strings.Join(armClangCpuVariantCflags["cortex-a15"], " "))
|
|
|
|
pctx.StaticVariable("armClangKraitCflags",
|
|
|
|
strings.Join(armClangCpuVariantCflags["krait"], " "))
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
armArchVariantCflagsVar = map[string]string{
|
|
|
|
"armv5te": "${armArmv5TECflags}",
|
|
|
|
"armv7-a": "${armArmv7ACflags}",
|
|
|
|
"armv7-a-neon": "${armArmv7ANeonCflags}",
|
|
|
|
}
|
|
|
|
|
|
|
|
armCpuVariantCflagsVar = map[string]string{
|
2016-01-15 00:17:19 +01:00
|
|
|
"": "${armGenericCflags}",
|
2015-10-21 00:21:33 +02:00
|
|
|
"cortex-a7": "${armCortexA7Cflags}",
|
|
|
|
"cortex-a8": "${armCortexA8Cflags}",
|
|
|
|
"cortex-a15": "${armCortexA15Cflags}",
|
|
|
|
"cortex-a53": "${armCortexA7Cflags}",
|
|
|
|
"cortex-a53.a57": "${armCortexA7Cflags}",
|
2016-05-09 22:39:58 +02:00
|
|
|
"krait": "${armKraitCflags}",
|
2015-10-21 00:21:33 +02:00
|
|
|
"denver": "${armCortexA15Cflags}",
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
armClangArchVariantCflagsVar = map[string]string{
|
|
|
|
"armv5te": "${armClangArmv5TECflags}",
|
|
|
|
"armv7-a": "${armClangArmv7ACflags}",
|
|
|
|
"armv7-a-neon": "${armClangArmv7ANeonCflags}",
|
|
|
|
}
|
|
|
|
|
|
|
|
armClangCpuVariantCflagsVar = map[string]string{
|
2016-01-15 00:17:19 +01:00
|
|
|
"": "${armClangGenericCflags}",
|
2015-10-21 00:21:33 +02:00
|
|
|
"cortex-a7": "${armClangCortexA7Cflags}",
|
|
|
|
"cortex-a8": "${armClangCortexA8Cflags}",
|
|
|
|
"cortex-a15": "${armClangCortexA15Cflags}",
|
|
|
|
"cortex-a53": "${armClangCortexA7Cflags}",
|
|
|
|
"cortex-a53.a57": "${armClangCortexA7Cflags}",
|
|
|
|
"krait": "${armClangKraitCflags}",
|
|
|
|
"denver": "${armClangCortexA15Cflags}",
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
type toolchainArm struct {
|
|
|
|
toolchain32Bit
|
2015-11-24 01:11:30 +01:00
|
|
|
ldflags string
|
|
|
|
toolchainCflags, toolchainClangCflags string
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|
|
|
|
|
2015-03-19 07:38:50 +01:00
|
|
|
func (t *toolchainArm) Name() string {
|
|
|
|
return "arm"
|
|
|
|
}
|
|
|
|
|
2015-01-31 02:27:36 +01:00
|
|
|
func (t *toolchainArm) GccRoot() string {
|
|
|
|
return "${armGccRoot}"
|
|
|
|
}
|
|
|
|
|
|
|
|
func (t *toolchainArm) GccTriple() string {
|
|
|
|
return "${armGccTriple}"
|
|
|
|
}
|
|
|
|
|
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-11-24 01:11:30 +01:00
|
|
|
func (t *toolchainArm) ToolchainCflags() string {
|
|
|
|
return t.toolchainCflags
|
|
|
|
}
|
|
|
|
|
2015-01-31 02:27:36 +01:00
|
|
|
func (t *toolchainArm) Cflags() string {
|
2015-11-24 01:11:30 +01:00
|
|
|
return "${armCflags}"
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (t *toolchainArm) Cppflags() string {
|
|
|
|
return "${armCppflags}"
|
|
|
|
}
|
|
|
|
|
|
|
|
func (t *toolchainArm) Ldflags() string {
|
|
|
|
return t.ldflags
|
|
|
|
}
|
|
|
|
|
|
|
|
func (t *toolchainArm) IncludeFlags() string {
|
|
|
|
return "${armIncludeFlags}"
|
|
|
|
}
|
|
|
|
|
2015-03-18 20:28:32 +01:00
|
|
|
func (t *toolchainArm) InstructionSetFlags(isa string) (string, error) {
|
|
|
|
switch isa {
|
|
|
|
case "arm":
|
|
|
|
return "${armArmCflags}", nil
|
|
|
|
case "thumb", "":
|
|
|
|
return "${armThumbCflags}", nil
|
|
|
|
default:
|
|
|
|
return t.toolchainBase.InstructionSetFlags(isa)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-01-31 02:27:36 +01:00
|
|
|
func (t *toolchainArm) ClangTriple() string {
|
|
|
|
return "${armGccTriple}"
|
|
|
|
}
|
|
|
|
|
2015-11-24 01:11:30 +01:00
|
|
|
func (t *toolchainArm) ToolchainClangCflags() string {
|
|
|
|
return t.toolchainClangCflags
|
|
|
|
}
|
|
|
|
|
2015-01-31 02:27:36 +01:00
|
|
|
func (t *toolchainArm) ClangCflags() string {
|
2015-11-24 01:11:30 +01:00
|
|
|
return "${armClangCflags}"
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (t *toolchainArm) ClangCppflags() string {
|
|
|
|
return "${armClangCppflags}"
|
|
|
|
}
|
|
|
|
|
|
|
|
func (t *toolchainArm) ClangLdflags() string {
|
|
|
|
return t.ldflags
|
|
|
|
}
|
|
|
|
|
2015-11-03 23:27:00 +01:00
|
|
|
func (t *toolchainArm) ClangInstructionSetFlags(isa string) (string, error) {
|
|
|
|
switch isa {
|
|
|
|
case "arm":
|
|
|
|
return "${armClangArmCflags}", nil
|
|
|
|
case "thumb", "":
|
|
|
|
return "${armClangThumbCflags}", nil
|
|
|
|
default:
|
|
|
|
return t.toolchainBase.ClangInstructionSetFlags(isa)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-06 23:41:07 +01:00
|
|
|
func (toolchainArm) AddressSanitizerRuntimeLibrary() string {
|
|
|
|
return "libclang_rt.asan-arm-android.so"
|
|
|
|
}
|
|
|
|
|
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
|
2016-01-15 00:17:19 +01:00
|
|
|
toolchainCflags := make([]string, 2, 3)
|
|
|
|
toolchainClangCflags := make([]string, 2, 3)
|
|
|
|
|
|
|
|
toolchainCflags[0] = "${armToolchainCflags}"
|
|
|
|
toolchainCflags[1] = armArchVariantCflagsVar[arch.ArchVariant]
|
|
|
|
toolchainClangCflags[0] = "${armToolchainClangCflags}"
|
|
|
|
toolchainClangCflags[1] = armClangArchVariantCflagsVar[arch.ArchVariant]
|
|
|
|
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
|
|
|
toolchainCflags = append(toolchainCflags,
|
|
|
|
variantOrDefault(armCpuVariantCflagsVar, arch.CpuVariant))
|
|
|
|
toolchainClangCflags = append(toolchainClangCflags,
|
|
|
|
variantOrDefault(armClangCpuVariantCflagsVar, arch.CpuVariant))
|
|
|
|
case "armv7-a":
|
2015-04-28 22:15:59 +02:00
|
|
|
fixCortexA8 = "-Wl,--fix-cortex-a8"
|
2016-01-15 00:17:19 +01:00
|
|
|
case "armv5te":
|
|
|
|
// Nothing extra for armv5te
|
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{
|
2016-01-15 00:17:19 +01:00
|
|
|
toolchainCflags: strings.Join(toolchainCflags, " "),
|
2015-01-31 02:27:36 +01:00
|
|
|
ldflags: strings.Join([]string{
|
|
|
|
"${armLdflags}",
|
2015-04-28 22:15:59 +02:00
|
|
|
fixCortexA8,
|
2015-01-31 02:27:36 +01:00
|
|
|
}, " "),
|
2016-01-15 00:17:19 +01:00
|
|
|
toolchainClangCflags: strings.Join(toolchainClangCflags, " "),
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2016-06-03 03:50:47 +02:00
|
|
|
registerDeviceToolchainFactory(android.Arm, armToolchainFactory)
|
2015-01-31 02:27:36 +01:00
|
|
|
}
|