We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
-msse2
1 parent ed3514b commit 296ea50Copy full SHA for 296ea50
builder/imports/awslc.py
@@ -54,8 +54,11 @@ def __init__(self, **kwargs):
54
**kwargs)
55
56
def cmake_args(self, env):
57
+ result = super().cmake_args(env)
58
if env.spec.compiler == 'gcc' and env.spec.compiler_version.startswith('4.'):
59
# Disable AVX512 on old GCC versions for aws-lc as they dont support AVX512 instructions used by aws-lc
- return super().cmake_args(env) + ['-DMY_ASSEMBLER_IS_TOO_OLD_FOR_512AVX=ON']
60
-
61
- return super().cmake_args(env)
+ result = result + ['-DMY_ASSEMBLER_IS_TOO_OLD_FOR_512AVX=ON']
+ if env.spec.arch == 'x86':
62
+ # Add -msse2 for compiler on x86.
63
+ result = result + ['-DCMAKE_C_FLAGS=-msse2']
64
+ return result
0 commit comments