aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2016-05-06 17:20:53 -0700
committerDan Willemsen <dwillemsen@google.com>2016-05-06 17:23:20 -0700
commit4ce470318220b9b411aec54cf58cbe4d84493fc9 (patch)
tree25328c5fa154fbe3dc3c12dbb9b56d7cb8dcd5f1
parent2c044aed20703188730661f4b49eb051023cc914 (diff)
downloadbuild_soong-4ce470318220b9b411aec54cf58cbe4d84493fc9.tar.gz
build_soong-4ce470318220b9b411aec54cf58cbe4d84493fc9.tar.bz2
build_soong-4ce470318220b9b411aec54cf58cbe4d84493fc9.zip
Add -mpopcnt for X86_64 targets if they support popcnt
Change-Id: I09668a220f207d3d7510f058610846e4427d815e
-rw-r--r--cc/x86_64_device.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/x86_64_device.go b/cc/x86_64_device.go
index 24c444e9..ceaf51c4 100644
--- a/cc/x86_64_device.go
+++ b/cc/x86_64_device.go
@@ -88,6 +88,7 @@ var (
"sse4": []string{"-msse4"},
"sse4_1": []string{"-msse4.1"},
"sse4_2": []string{"-msse4.2"},
+ "popcnt": []string{"-mpopcnt"},
"avx": []string{"-mavx"},
"aes_ni": []string{"-maes"},
}