mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 09:11:42 +00:00
[CLANG-CL] Initial commit that allows us to compile ReactOS with clang-cl.
This commit is contained in:
parent
861360c65f
commit
09c06a2f45
18 changed files with 91 additions and 50 deletions
|
@ -581,9 +581,10 @@ endif()
|
|||
set_source_files_properties(${CRT_ASM_SOURCE} PROPERTIES COMPILE_DEFINITIONS "__MINGW_IMPORT=extern;USE_MSVCRT_PREFIX;_MSVCRT_LIB_;_MSVCRT_;_MT;CRTDLL")
|
||||
add_asm_files(crt_asm ${CRT_ASM_SOURCE})
|
||||
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
#FIXME: http://llvm.org/bugs/show_bug.cgi?id=19027
|
||||
set_property(SOURCE except/cpp.c APPEND_STRING PROPERTY COMPILE_FLAGS " -no-integrated-as")
|
||||
if(USE_CLANG_CL)
|
||||
# clang-cl is missing pragma function support
|
||||
# https://bugs.llvm.org/show_bug.cgi?id=35116
|
||||
set_property(SOURCE stdlib/rot.c APPEND_STRING PROPERTY COMPILE_FLAGS " /fallback")
|
||||
endif()
|
||||
|
||||
add_library(crt ${CRT_SOURCE} ${crt_asm})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue