summaryrefslogtreecommitdiff
path: root/Meta/CMake
diff options
context:
space:
mode:
authorDexesTTP <dexes.ttp@gmail.com>2021-02-08 20:40:58 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-11 13:13:32 +0100
commit2acbb811b1751233833f9ea89f7e76774262a706 (patch)
tree6bd8f5fdcd73bb01258cd2e4feceb2300faea2fb /Meta/CMake
parent0304ab3e678151c2f73fd91050a99e8875410ac0 (diff)
downloadserenity-2acbb811b1751233833f9ea89f7e76774262a706.zip
LibCore: Added FileWatcher, a binding for the watch_file syscall
This wrapper abstracts the watch_file setup and file handling, and allows using the watch_file events as part of the event loop via the Core::Notifier class. Also renames the existing DirectoryWatcher class to BlockingFileWatcher, and adds support for the Modified mode in this class.
Diffstat (limited to 'Meta/CMake')
-rw-r--r--Meta/CMake/all_the_debug_macros.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Meta/CMake/all_the_debug_macros.cmake b/Meta/CMake/all_the_debug_macros.cmake
index 097ae7a555..d2fa65a8e2 100644
--- a/Meta/CMake/all_the_debug_macros.cmake
+++ b/Meta/CMake/all_the_debug_macros.cmake
@@ -165,6 +165,7 @@ set(CPP_DEBUG ON)
set(DEBUG_SPAM ON)
set(DEBUG_CPP_LANGUAGE_SERVER ON)
set(DEBUG_AUTOCOMPLETE ON)
+set(FILE_WATCHER_DEBUG ON)
# False positive: DEBUG is a flag but it works differently.
# set(DEBUG ON)