Skip to content

Commit e23cbef

Browse files
committed
Revert "add compiler flag -msse2 for aws-lc on x86 (#291)"
This reverts commit 296ea50.
1 parent 30f2f92 commit e23cbef

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

builder/imports/awslc.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,8 @@ def __init__(self, **kwargs):
5454
**kwargs)
5555

5656
def cmake_args(self, env):
57-
result = super().cmake_args(env)
5857
if env.spec.compiler == 'gcc' and env.spec.compiler_version.startswith('4.'):
5958
# Disable AVX512 on old GCC versions for aws-lc as they dont support AVX512 instructions used by aws-lc
60-
result = result + ['-DMY_ASSEMBLER_IS_TOO_OLD_FOR_512AVX=ON']
61-
if env.spec.arch == 'x86':
62-
# Add -msse2 for compiler on x86.
63-
result = result + ['-DCMAKE_C_FLAGS=-msse2']
64-
return result
59+
return super().cmake_args(env) + ['-DMY_ASSEMBLER_IS_TOO_OLD_FOR_512AVX=ON']
60+
61+
return super().cmake_args(env)

0 commit comments

Comments
 (0)