Skip to content

Commit

Permalink
Disable perl for old GCC (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Jul 12, 2024
1 parent a6d586e commit 9a378d3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions builder/imports/awslc.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
'targets': ['linux', 'android'],
'test_steps': [],
'build_tests': False,
'cmake_args': ['-DDISABLE_GO=ON', '-DBUILD_LIBSSL=OFF']
'cmake_args': ['-DDISABLE_GO=ON', '-DBUILD_LIBSSL=OFF', '-DDISABLE_PERL=ON']
}


Expand Down Expand Up @@ -55,8 +55,7 @@ def __init__(self, **kwargs):

def cmake_args(self, env):
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
# 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']
else:
return super().cmake_args(env) + ['-DDISABLE_PERL=ON']

return super().cmake_args(env)

0 comments on commit 9a378d3

Please sign in to comment.