[0.4.11][APISETS] Fix last build issue for MSVC Rls-config CORE-17402

dll\apisets\api-ms-win-crt-utility-l1-1-0_stubs.c(41) : error C2169: 'llabs' : intrinsic function, cannot be defined

Allows to complete the whole 'ninja bootcd' after 'configure -DCMAKE_BUILD_TYPE=Release'
for compiler MSVC 2010SP1 16.0.40219.1 with RosBE 2.1.6

Similar to the fix committed in 0.4.15-dev-1453-g 4ad7b6d634
This commit is contained in:
Joachim Henze 2021-01-12 02:34:08 +01:00
parent 37fb86792a
commit c7f665ab75
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ function (add_apiset apiset_name baseaddress)
if(NOT MSVC)
add_target_compile_flags(${apiset_name} "-fno-builtin")
else()
add_target_compile_flags(${apiset_name} "/wd4026 /wd4273")
add_target_compile_flags(${apiset_name} "/wd4026 /wd4273 /Oi-")
endif()
add_importlibs(${apiset_name} ${ARGN} kernel32 ntdll)

View file

@ -27,7 +27,7 @@ function (add_apiset apiset_name baseaddress)
if(NOT MSVC)
add_target_compile_flags(${apiset_name} "-fno-builtin")
else()
add_target_compile_flags(${apiset_name} "/wd4026 /wd4273")
add_target_compile_flags(${apiset_name} "/wd4026 /wd4273 /Oi-")
endif()
add_importlibs(${apiset_name} ${ARGN} kernel32 ntdll)