Skip to content

Commit df215cd

Browse files
minor cleanup
1 parent 5b65fc5 commit df215cd

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

builder/imports/awslc.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ def __init__(self, **kwargs):
5454
**kwargs)
5555

5656
def cmake_args(self, env):
57+
# always disable perl to skip codegen and instead rely on pre-generated code
58+
args = super().cmake_args(env) + ['-DDISABLE_PERL=ON']
59+
5760
if env.spec.compiler == 'gcc' and env.spec.compiler_version.startswith('4.'):
58-
# Disable AVX512 on old GCC for aws-lc
59-
# Not disable PERL for old GCC to avoid the pre-compiled binary with AVX512
60-
return super().cmake_args(env) + ['-DDISABLE_PERL=ON', '-DMY_ASSEMBLER_IS_TOO_OLD_FOR_512AVX=ON']
61-
else:
62-
return super().cmake_args(env) + ['-DDISABLE_PERL=ON']
61+
# Disable AVX512 on old GCC versions for aws-lc as they dont support AVX512 instructions used by aws-lc
62+
args += ['-DMY_ASSEMBLER_IS_TOO_OLD_FOR_512AVX=ON']
63+
64+
return args

0 commit comments

Comments
 (0)