https://git.reactos.org/?p=reactos.git;a=commitdiff;h=57cf5cdc5d0896ca537f6ffeb3b4bc2b56a325b7

commit 57cf5cdc5d0896ca537f6ffeb3b4bc2b56a325b7
Author:     Jérôme Gardou <jerome.gar...@reactos.org>
AuthorDate: Mon Nov 30 14:17:41 2020 +0100
Commit:     Jérôme Gardou <jerome.gar...@reactos.org>
CommitDate: Tue Dec 22 11:08:06 2020 +0100

    [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)

Reply via email to