mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-12-05 00:35:37 +08:00
fix compilation warning for mbedtls dep on visual studio
This commit is contained in:
parent
d74d87c198
commit
c7320465e3
@ -564,12 +564,15 @@ if _OPTIONS["build-mbedtls"] or _OPTIONS["all-build"] then
|
|||||||
table.insert(mbedtls_common_defs, "LINK_WITH_PTHREAD=ON")
|
table.insert(mbedtls_common_defs, "LINK_WITH_PTHREAD=ON")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local mbedtls_32_bit_fixes = {}
|
||||||
|
if _OPTIONS["32-build"] and string.match(_ACTION, 'gmake.*') then
|
||||||
|
table.insert(mbedtls_32_bit_fixes, '-mpclmul')
|
||||||
|
table.insert(mbedtls_32_bit_fixes, '-msse2')
|
||||||
|
table.insert(mbedtls_32_bit_fixes, '-maes')
|
||||||
|
end
|
||||||
|
|
||||||
if _OPTIONS["32-build"] then
|
if _OPTIONS["32-build"] then
|
||||||
cmake_build('mbedtls', true, mbedtls_common_defs, {
|
cmake_build('mbedtls', true, mbedtls_common_defs, mbedtls_32_bit_fixes)
|
||||||
'-mpclmul',
|
|
||||||
'-msse2',
|
|
||||||
'-maes',
|
|
||||||
})
|
|
||||||
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