Allow build systems to specify the files to watch for changes

rdar://136014553
Resolves #1671
This commit is contained in:
Alex Hoppen
2024-09-21 10:24:21 -07:00
parent 8861f3a88d
commit 36478d87ed
17 changed files with 195 additions and 56 deletions

View File

@@ -87,6 +87,11 @@ package actor CompilationDatabaseBuildSystem: BuiltInBuildSystem {
package let projectRoot: AbsolutePath
package let fileWatchers: [FileSystemWatcher] = [
FileSystemWatcher(globPattern: "**/compile_commands.json", kind: [.create, .change, .delete]),
FileSystemWatcher(globPattern: "**/compile_flags.txt", kind: [.create, .change, .delete]),
]
private var _indexStorePath: Cachable<AbsolutePath?> = .noValue
package var indexStorePath: AbsolutePath? {
_indexStorePath.get {