https://git.reactos.org/?p=reactos.git;a=commitdiff;h=926ada989c8c9f6e8b2055...
commit 926ada989c8c9f6e8b20554cead6d475a4ce1126 Author: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com AuthorDate: Thu Oct 22 09:07:15 2020 +0900 Commit: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com CommitDate: Thu Oct 22 09:07:15 2020 +0900
[APISETS] Try to fix build of both case of MSVC AND CLANG --- dll/apisets/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dll/apisets/CMakeLists.txt b/dll/apisets/CMakeLists.txt index 27b82d2a281..acd16ab3433 100644 --- a/dll/apisets/CMakeLists.txt +++ b/dll/apisets/CMakeLists.txt @@ -24,7 +24,9 @@ function (add_apiset apiset_name baseaddress) add_dependencies(${apiset_name} xdk) set_module_type(${apiset_name} win32dll ENTRYPOINT 0 UNICODE IMAGEBASE ${baseaddress})
- if(NOT MSVC) + if(MSVC AND CLANG) + target_compile_options(${apiset_name} PRIVATE -fno-builtin) + elseif(NOT MSVC) target_compile_options(${apiset_name} PRIVATE -fno-builtin) else() target_compile_options(${apiset_name} PRIVATE /wd4026 /wd4273)