From 57cf5cdc5d0896ca537f6ffeb3b4bc2b56a325b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Mon, 30 Nov 2020 14:17:41 +0100 Subject: [PATCH] [FASTFAT_NEW] Tune compile options and definitions for debugging --- drivers/filesystems/fastfat_new/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/filesystems/fastfat_new/CMakeLists.txt b/drivers/filesystems/fastfat_new/CMakeLists.txt index 7abdce95302..c425ff0ad3e 100644 --- a/drivers/filesystems/fastfat_new/CMakeLists.txt +++ b/drivers/filesystems/fastfat_new/CMakeLists.txt @@ -38,6 +38,9 @@ list(APPEND SOURCE add_library(fastfat MODULE ${SOURCE} fastfat.rc) set_module_type(fastfat kernelmodedriver) target_link_libraries(fastfat ${PSEH_LIB} memcmp) +if(GDB AND NOT CLANG) + target_compile_options(fastfat PRIVATE -O0) +endif() add_importlibs(fastfat ntoskrnl hal) add_pch(fastfat fatprocs.h SOURCE) add_cd_file(TARGET fastfat DESTINATION reactos/system32/drivers NO_CAB FOR all)