diff options
author | Dan Willemsen <dwillemsen@google.com> | 2016-05-10 14:30:51 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2016-05-10 15:29:33 -0700 |
commit | 8a35405d330ed9f69f6a34ca6d5e75ccc2c64540 (patch) | |
tree | a4671099e2d5dc2c96318babaa805214dd83bc75 /cc | |
parent | f4449451b59dda4e8dfc92ffdffa9dd6aa569a19 (diff) | |
download | build_soong-8a35405d330ed9f69f6a34ca6d5e75ccc2c64540.tar.gz build_soong-8a35405d330ed9f69f6a34ca6d5e75ccc2c64540.tar.bz2 build_soong-8a35405d330ed9f69f6a34ca6d5e75ccc2c64540.zip |
Add a 32-bit x86_64 arch variant
In make, the current 32-bit configuration for generic x86_64 targets
inherits some variables (SSE4 support) from the 64-bit configuration,
and overrides the make variables used for other configurations (SSSE3).
We don't have that problem in Soong, but this is the configuration
matching what Make is using.
Change-Id: Ia934ff40f9388f9c202a0fe0608e7b45b77a2714
Diffstat (limited to 'cc')
-rw-r--r-- | cc/x86_device.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cc/x86_device.go b/cc/x86_device.go index c1bdfd55..4c0d6248 100644 --- a/cc/x86_device.go +++ b/cc/x86_device.go @@ -73,6 +73,9 @@ var ( "": []string{ "-march=prescott", }, + "x86_64": []string{ + "-march=prescott", + }, "atom": []string{ "-march=atom", "-mfpmath=sse", @@ -110,6 +113,12 @@ const ( ) func init() { + common.RegisterArchFeatures(common.X86, "x86_64", + "ssse3", + "sse4", + "sse4_1", + "sse4_2", + "popcnt") common.RegisterArchFeatures(common.X86, "atom", "ssse3", "movbe") |