File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ target_link_libraries(libSwiftScan PRIVATE
23
23
swiftDriverTool
24
24
swiftStaticMirror
25
25
swiftRemoteInspection
26
- swiftCompilerStub )
26
+ swiftCompilerModules )
27
27
28
28
set_target_properties (libSwiftScan
29
29
PROPERTIES
Original file line number Diff line number Diff line change 15
15
// ===----------------------------------------------------------------------===//
16
16
17
17
#include " swift/Basic/LLVMInitialize.h"
18
+ #include " swift/Basic/InitializeSwiftModules.h"
18
19
#include " swift/DriverTool/DriverTool.h"
19
20
#include " swift/DependencyScan/DependencyScanImpl.h"
20
21
#include " swift/DependencyScan/DependencyScanningTool.h"
@@ -114,6 +115,9 @@ void swiftscan_scanner_cache_reset(swiftscan_scanner_t scanner) {
114
115
115
116
swiftscan_scanner_t swiftscan_scanner_create (void ) {
116
117
INITIALIZE_LLVM ();
118
+ // We must initialize the swift modules responsible for parsing functionality,
119
+ // such as parsing regex.
120
+ initializeSwiftParseModules ();
117
121
return wrap (new DependencyScanningTool ());
118
122
}
119
123
You can’t perform that action at this time.
0 commit comments