mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 14:34:57 +08:00
[NTOSKRNL] Enforce -fno-common on GCC & CLang builds
This commit is contained in:
committed by
Jérôme Gardou
parent
c6e9fea844
commit
aa2697df2d
@@ -3,6 +3,11 @@ PROJECT(NTOS)
|
||||
|
||||
include(ntos.cmake)
|
||||
|
||||
if (CMAKE_C_COMPILER_ID MATCHES "GNU|Clang")
|
||||
# Make sure we don't duplicate some symbols
|
||||
add_compile_options(-fno-common)
|
||||
endif()
|
||||
|
||||
set(NTOSKRNL_SOURCE ${SOURCE})
|
||||
set(NTOSKRNL_ASM_SOURCE ${ASM_SOURCE})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user