From 55f1f3000a8bc5273b4e4edaca70f3f3fef8b7ad Mon Sep 17 00:00:00 2001 From: Victor Perevertkin Date: Thu, 14 Oct 2021 19:27:02 +0300 Subject: [PATCH] [CMAKE] Remove /fallback compile flag from clang-cl builds This option is not needed anymore and was removed from LLVM 13 --- drivers/filesystems/ext2/CMakeLists.txt | 11 +---------- sdk/lib/crt/stdlib/stdlib.cmake | 4 ---- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/filesystems/ext2/CMakeLists.txt b/drivers/filesystems/ext2/CMakeLists.txt index b948b50c9b5..005bfcb6dac 100644 --- a/drivers/filesystems/ext2/CMakeLists.txt +++ b/drivers/filesystems/ext2/CMakeLists.txt @@ -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) diff --git a/sdk/lib/crt/stdlib/stdlib.cmake b/sdk/lib/crt/stdlib/stdlib.cmake index 5325319f839..aaf745c4519 100644 --- a/sdk/lib/crt/stdlib/stdlib.cmake +++ b/sdk/lib/crt/stdlib/stdlib.cmake @@ -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