[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:
Victor Perevertkin 2021-10-14 19:27:02 +03:00
parent 63e7d6c29e
commit 55f1f3000a
No known key found for this signature in database
GPG key ID: C750B7222E9C7830
2 changed files with 1 additions and 14 deletions

View file

@ -88,10 +88,6 @@ list(APPEND SOURCE
add_library(ext2fs MODULE ${SOURCE} ext2fs.rc) 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(MSVC)
if (NOT CLANG) if (NOT CLANG)
# Disable warning C4101: 'i': unreferenced local variable # 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) add_definitions(-D__KERNEL__ -D_CRT_NO_POSIX_ERROR_CODES)
set_module_type(ext2fs kernelmodedriver) set_module_type(ext2fs kernelmodedriver)
add_importlibs(ext2fs ntoskrnl hal) add_importlibs(ext2fs ntoskrnl hal)
set_property(TARGET ext2fs PROPERTY C_STANDARD 90) set_property(TARGET ext2fs PROPERTY C_STANDARD 90)
add_pch(ext2fs inc/ext2fs.h SOURCE)
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_cd_file(TARGET ext2fs DESTINATION reactos/system32/drivers FOR all) add_cd_file(TARGET ext2fs DESTINATION reactos/system32/drivers FOR all)

View file

@ -33,10 +33,6 @@ list(APPEND CRT_STDLIB_SOURCE
) )
if(USE_CLANG_CL) 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") if(ARCH STREQUAL "i386")
list(APPEND CRT_STDLIB_ASM_SOURCE list(APPEND CRT_STDLIB_ASM_SOURCE
stdlib/clang-alias.s stdlib/clang-alias.s