mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[CMAKE] Remove /fallback compile flag from clang-cl builds
This option is not needed anymore and was removed from LLVM 13
This commit is contained in:
parent
63e7d6c29e
commit
55f1f3000a
2 changed files with 1 additions and 14 deletions
|
@ -88,10 +88,6 @@ list(APPEND SOURCE
|
|||
|
||||
add_library(ext2fs MODULE ${SOURCE} ext2fs.rc)
|
||||
|
||||
if(USE_CLANG_CL)
|
||||
set_property(SOURCE src/create.c src/fileinfo.c src/memory.c src/read.c APPEND_STRING PROPERTY COMPILE_FLAGS " /fallback")
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
if (NOT CLANG)
|
||||
# Disable warning C4101: 'i': unreferenced local variable
|
||||
|
@ -120,12 +116,7 @@ target_link_libraries(ext2fs memcmp ${PSEH_LIB})
|
|||
add_definitions(-D__KERNEL__ -D_CRT_NO_POSIX_ERROR_CODES)
|
||||
set_module_type(ext2fs kernelmodedriver)
|
||||
add_importlibs(ext2fs ntoskrnl hal)
|
||||
|
||||
set_property(TARGET ext2fs PROPERTY C_STANDARD 90)
|
||||
|
||||
if(NOT USE_CLANG_CL)
|
||||
# The fallback we have above prevents cl and clang-cl from using the same PCH
|
||||
add_pch(ext2fs inc/ext2fs.h SOURCE)
|
||||
endif()
|
||||
add_pch(ext2fs inc/ext2fs.h SOURCE)
|
||||
|
||||
add_cd_file(TARGET ext2fs DESTINATION reactos/system32/drivers FOR all)
|
||||
|
|
|
@ -33,10 +33,6 @@ list(APPEND CRT_STDLIB_SOURCE
|
|||
)
|
||||
|
||||
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")
|
||||
|
||||
if(ARCH STREQUAL "i386")
|
||||
list(APPEND CRT_STDLIB_ASM_SOURCE
|
||||
stdlib/clang-alias.s
|
||||
|
|
Loading…
Reference in a new issue