mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[APISETS][RDBSSLIB][RTL] Fix some build issues for MSVC Rls-config CORE-17402
A subset of the patch that is intended to fix all build issues in releases/0.4.14 for compiler MSVC 2010SP1 16.0.40219.1 with RosBE 2.1.6 I left out the changes for disk_new in master because the drivers sources were replaced since the branching. Thanks to Mark Jansen for providing the apisets part. VBox https://reactos.org/testman/compare.php?ids=75522,75524 KVM https://reactos.org/testman/compare.php?ids=75521,75523
This commit is contained in:
parent
784725143e
commit
4ad7b6d634
4 changed files with 14 additions and 3 deletions
|
@ -27,7 +27,7 @@ function (add_apiset apiset_name baseaddress)
|
|||
if(NOT MSVC)
|
||||
target_compile_options(${apiset_name} PRIVATE -fno-builtin)
|
||||
else()
|
||||
target_compile_options(${apiset_name} PRIVATE /wd4026 /wd4273)
|
||||
target_compile_options(${apiset_name} PRIVATE /wd4026 /wd4273 /Oi-)
|
||||
endif()
|
||||
|
||||
add_importlibs(${apiset_name} ${ARGN} ntdll)
|
||||
|
|
|
@ -27,7 +27,7 @@ function (add_apiset apiset_name baseaddress)
|
|||
if(NOT MSVC)
|
||||
target_compile_options(${apiset_name} PRIVATE -fno-builtin)
|
||||
else()
|
||||
target_compile_options(${apiset_name} PRIVATE /wd4026 /wd4273)
|
||||
target_compile_options(${apiset_name} PRIVATE /wd4026 /wd4273 /Oi-)
|
||||
endif()
|
||||
|
||||
add_importlibs(${apiset_name} ${ARGN} ntdll)
|
||||
|
|
|
@ -3,6 +3,11 @@ add_definitions(-DUNICODE -D_UNICODE -DRDBSS_TRACKER)
|
|||
include_directories(${REACTOS_SOURCE_DIR}/drivers/filesystems/mup
|
||||
${REACTOS_SOURCE_DIR}/sdk/lib/drivers/copysup)
|
||||
|
||||
if(MSVC)
|
||||
# error C4101: 'BreakpointsSave' : unreferenced local variable in Release-Configuration
|
||||
replace_compile_flags("/we4101" " ")
|
||||
endif()
|
||||
|
||||
list(APPEND SOURCE
|
||||
rdbss.c)
|
||||
|
||||
|
|
|
@ -5,6 +5,11 @@ add_definitions(
|
|||
-D_NTSYSTEM_
|
||||
-D_NTDLLBUILD_)
|
||||
|
||||
if(MSVC)
|
||||
# error C4101: unreferenced local variable in Release-Configuration due to debug logging
|
||||
replace_compile_flags("/we4101" " ")
|
||||
endif()
|
||||
|
||||
list(APPEND SOURCE
|
||||
access.c
|
||||
acl.c
|
||||
|
@ -112,7 +117,8 @@ endif()
|
|||
|
||||
add_asm_files(rtl_asm ${ASM_SOURCE})
|
||||
add_library(rtl ${SOURCE} ${rtl_asm})
|
||||
add_pch(rtl rtl.h SOURCE)
|
||||
#disable pch to prevent macro redefinition rtl.h WIN32_NO_STATUS
|
||||
#add_pch(rtl rtl.h SOURCE)
|
||||
add_dependencies(rtl psdk asm)
|
||||
|
||||
list(APPEND SOURCE_VISTA
|
||||
|
|
Loading…
Reference in a new issue