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/mips_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/mips_device.go')
-rw-r--r-- | cc/config/mips_device.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cc/config/mips_device.go b/cc/config/mips_device.go index deef10f5..f5b14bd5 100644 --- a/cc/config/mips_device.go +++ b/cc/config/mips_device.go @@ -126,7 +126,15 @@ const ( ) func init() { - android.RegisterArchFeatures(android.Mips, "mips32r6", + android.RegisterArchVariants(android.Mips, + "mips32_fp", + "mips32r2_fp", + "mips32r2_fp_xburst", + "mips32r2dsp_fp", + "mips32r2dspr2_fp", + "mips32r6") + android.RegisterArchFeatures(android.Mips, "rev6") + android.RegisterArchVariantFeatures(android.Mips, "mips32r6", "rev6") pctx.StaticVariable("mipsGccVersion", mipsGccVersion) |