mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-12-04 00:05:36 +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")
|
||||
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
|
||||
cmake_build('mbedtls', true, mbedtls_common_defs, {
|
||||
'-mpclmul',
|
||||
'-msse2',
|
||||
'-maes',
|
||||
})
|
||||
cmake_build('mbedtls', true, mbedtls_common_defs, mbedtls_32_bit_fixes)
|
||||
end
|
||||
if _OPTIONS["64-build"] then
|
||||
cmake_build('mbedtls', false, mbedtls_common_defs)
|
||||
|
Loading…
Reference in New Issue
Block a user