From 9a378d353147240e3b79ab2d2b35546faf2dcd7a Mon Sep 17 00:00:00 2001 From: Dmitriy Musatkin <63878209+DmitriyMusatkin@users.noreply.github.com> Date: Fri, 12 Jul 2024 12:05:21 -0700 Subject: [PATCH] Disable perl for old GCC (#287) --- builder/imports/awslc.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/builder/imports/awslc.py b/builder/imports/awslc.py index 6c0737a71..75b329ff8 100644 --- a/builder/imports/awslc.py +++ b/builder/imports/awslc.py @@ -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'] } @@ -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)