Merge "soong: use optimal FPU on Kryo targets"

This commit is contained in:
Christopher Ferris
2017-04-07 23:18:23 +00:00
committed by Gerrit Code Review

View File

@@ -136,6 +136,7 @@ var (
},
"kryo": []string{
"-mcpu=cortex-a15",
"-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
@@ -171,7 +172,6 @@ func init() {
armClangCpuVariantCflags["krait"] = append(armClangCpuVariantCflags["krait"], "-mfpu=neon-vfpv4")
replaceFirst(armClangCpuVariantCflags["kryo"], "-mcpu=cortex-a15", "-mcpu=krait")
armClangCpuVariantCflags["kryo"] = append(armClangCpuVariantCflags["kryo"], "-mfpu=neon-vfpv4")
pctx.StaticVariable("armGccVersion", armGccVersion)