diff options
author | Dan Willemsen <dwillemsen@google.com> | 2016-06-23 23:44:54 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2016-09-08 13:50:36 -0700 |
commit | b1957a502116195a534f45c37f15efa35298e520 (patch) | |
tree | 1f3ca32b4b6bf6fe0097f8740d2b201d0c4632cb /cc/config/arm_device.go | |
parent | 42d1ba2d92a965772d92b3b466dcbddf583cb2f3 (diff) | |
download | build_soong-b1957a502116195a534f45c37f15efa35298e520.tar.gz build_soong-b1957a502116195a534f45c37f15efa35298e520.tar.bz2 build_soong-b1957a502116195a534f45c37f15efa35298e520.zip |
Dynamically generate arch struct
Now we don't need to hardcode the list of OS/Arch/Variant/Features in
android/arch.go.
Change-Id: I0f9cc35d55baa31f036825fdf5b9dd30d076e56e
Diffstat (limited to 'cc/config/arm_device.go')
-rw-r--r-- | cc/config/arm_device.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cc/config/arm_device.go b/cc/config/arm_device.go index 85a891a4..1b60eae7 100644 --- a/cc/config/arm_device.go +++ b/cc/config/arm_device.go @@ -145,6 +145,19 @@ const ( ) func init() { + android.RegisterArchVariants(android.Arm, + "armv5te", + "armv7_a", + "armv7_a_neon", + "cortex_a7", + "cortex_a8", + "cortex_a9", + "cortex_a15", + "cortex_a53", + "cortex_a53_a57", + "krait", + "denver") + replaceFirst := func(slice []string, from, to string) { if slice[0] != from { panic(fmt.Errorf("Expected %q, found %q", from, to)) |