https://git.reactos.org/?p=reactos.git;a=commitdiff;h=56e56f8eccc4e6d4678ab2723ece2981001715ca
commit 56e56f8eccc4e6d4678ab2723ece2981001715ca Author: Jérôme Gardou <[email protected]> AuthorDate: Tue Dec 22 12:32:45 2020 +0100 Commit: Jérôme Gardou <[email protected]> CommitDate: Mon Dec 28 12:13:30 2020 +0100 [CMAKE] Use -fcommon when using CLang --- sdk/cmake/msvc.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdk/cmake/msvc.cmake b/sdk/cmake/msvc.cmake index a3048c34e1d..10beb82f704 100644 --- a/sdk/cmake/msvc.cmake +++ b/sdk/cmake/msvc.cmake @@ -55,6 +55,11 @@ if(ARCH STREQUAL "i386") endif() endif() +# CLang default to -fno-common from version 11 onward. We are not rady for this now +if (USE_CLANG_CL) + add_compile_options(-fcommon) +endif() + # VS 12+ requires /FS when used in parallel compilations if(NOT MSVC_IDE) add_compile_options(/FS)
