mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-23 19:25:35 +08:00
fix 32-bit compilation of mbedtls for linux
This commit is contained in:
parent
5a44bf7b8e
commit
baa805ec7e
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user