[0.4.13][APISETS] Fix last build issue for MSVC Rls-config CORE-17402
authorJoachim Henze <Joachim.Henze@reactos.org>
Tue, 12 Jan 2021 01:32:57 +0000 (02:32 +0100)
committerJoachim Henze <Joachim.Henze@reactos.org>
Tue, 12 Jan 2021 01:32:57 +0000 (02:32 +0100)
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 4ad7b6d634bf2096eda1b97b45e9c5b15bbe80c7

dll/apisets/CMakeLists.txt
dll/apisets/CMakeLists.txt.in

index 4e65858..3116e5d 100644 (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} ntdll)
index 6d12758..ce5b499 100644 (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} ntdll)