From e23cbefba2c8907b2306e4acab7a558ba6348aa1 Mon Sep 17 00:00:00 2001 From: Dengke Date: Mon, 16 Sep 2024 09:16:42 -0700 Subject: [PATCH] Revert "add compiler flag `-msse2` for aws-lc on x86 (#291)" This reverts commit 296ea50cf4169bde23a27bc725dd6fafd7a6333e. --- builder/imports/awslc.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/builder/imports/awslc.py b/builder/imports/awslc.py index df52b3cd4..75b329ff8 100644 --- a/builder/imports/awslc.py +++ b/builder/imports/awslc.py @@ -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)