fix 32-bit compilation of mbedtls for linux

This commit is contained in:
otavepto 2024-05-28 01:42:06 +03:00
parent 5a44bf7b8e
commit baa805ec7e

View File

@ -580,12 +580,11 @@ if _OPTIONS["build-mbedtls"] or _OPTIONS["all-build"] then
end end
if _OPTIONS["32-build"] then if _OPTIONS["32-build"] then
local mbedtls_all_defs_32 = table.deepcopy(mbedtls_common_defs) -- we want a copy to avoid changing the original list cmake_build('mbedtls', true, mbedtls_common_defs, {
if string.match(_ACTION, 'gmake.*') then '-mpclmul',
table.insert(mbedtls_all_defs_32, 'CMAKE_C_FLAGS_INIT="-mpclmul -msse2 -maes"') '-msse2',
table.insert(mbedtls_all_defs_32, 'CMAKE_CXX_FLAGS_INIT="-mpclmul -msse2 -maes"') '-maes',
end })
cmake_build('mbedtls', true, mbedtls_all_defs_32)
end end
if _OPTIONS["64-build"] then if _OPTIONS["64-build"] then
cmake_build('mbedtls', false, mbedtls_common_defs) cmake_build('mbedtls', false, mbedtls_common_defs)