mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
[NTOSKRNL] Link memcmp to the import lib when using CLang
CLang performs some optimisations on e.g. strcmp, but memcmp is not exported by ntoskrnl
This commit is contained in:
committed by
Jérôme Gardou
parent
378642eb4f
commit
e00922a0fe
@@ -12,6 +12,11 @@ set(NTKRNLMP_ASM_SOURCE ${ASM_SOURCE})
|
||||
spec2def(ntoskrnl.exe ntoskrnl.spec ADD_IMPORTLIB)
|
||||
add_asm_files(ntoskrnl_asm ${NTOSKRNL_ASM_SOURCE})
|
||||
|
||||
if (GCC AND CLANG)
|
||||
# Clang optimises strcmp calls to memcmp.
|
||||
target_link_libraries(libntoskrnl INTERFACE memcmp)
|
||||
endif()
|
||||
|
||||
list(APPEND PCH_SKIP_SOURCE
|
||||
guid.c)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user