From 4ce470318220b9b411aec54cf58cbe4d84493fc9 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Fri, 6 May 2016 17:20:53 -0700 Subject: [PATCH] Add -mpopcnt for X86_64 targets if they support popcnt Change-Id: I09668a220f207d3d7510f058610846e4427d815e --- cc/x86_64_device.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cc/x86_64_device.go b/cc/x86_64_device.go index 24c444e99..ceaf51c4a 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"}, }