Skip to content

Commit

Permalink
Revert "add compiler flag -msse2 for aws-lc on x86 (#291)" (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK committed Sep 16, 2024
1 parent 30f2f92 commit 152d863
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions builder/imports/awslc.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,8 @@ def __init__(self, **kwargs):
**kwargs)

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

return super().cmake_args(env)

0 comments on commit 152d863

Please sign in to comment.