aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-01-28 10:33:40 -0500
committerJack Lloyd <[email protected]>2018-01-28 10:33:40 -0500
commitce0c28bffff30d9a1ce2fd93507012b1174600ac (patch)
treedfb3e80cb81b82ac70944f5aa848d99d92e25e39
parent2b96c5bf613d4b0955d7f925d4d4ee5bd0db74ca (diff)
Fix amalgamation pragma for SSE 4.1
Missed by Travis builds because GCC is too old there.
-rwxr-xr-xconfigure.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.py b/configure.py
index 9d7cf364b..9502dc3e4 100755
--- a/configure.py
+++ b/configure.py
@@ -2465,6 +2465,12 @@ class AmalgamationGenerator(object):
f.write('\n')
for isa in self._isas_for_target(target):
+
+ if isa == 'sse41':
+ isa = 'sse4.1'
+ elif isa == 'sse42':
+ isa = 'ssse4.2'
+
f.write('#if defined(__GNUG__) && !defined(__clang__)\n')
f.write('#pragma GCC target ("%s")\n' % (isa))
f.write('#endif\n')