Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Jul 8, 2024
1 parent 5b65fc5 commit df215cd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions builder/imports/awslc.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ def __init__(self, **kwargs):
**kwargs)

def cmake_args(self, env):
# always disable perl to skip codegen and instead rely on pre-generated code
args = super().cmake_args(env) + ['-DDISABLE_PERL=ON']

if env.spec.compiler == 'gcc' and env.spec.compiler_version.startswith('4.'):
# Disable AVX512 on old GCC for aws-lc
# Not disable PERL for old GCC to avoid the pre-compiled binary with AVX512
return super().cmake_args(env) + ['-DDISABLE_PERL=ON', '-DMY_ASSEMBLER_IS_TOO_OLD_FOR_512AVX=ON']
else:
return super().cmake_args(env) + ['-DDISABLE_PERL=ON']
# Disable AVX512 on old GCC versions for aws-lc as they dont support AVX512 instructions used by aws-lc
args += ['-DMY_ASSEMBLER_IS_TOO_OLD_FOR_512AVX=ON']

return args

0 comments on commit df215cd

Please sign in to comment.