File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -11,4 +11,5 @@ target_link_libraries(swiftDependencyScan INTERFACE
11
11
12
12
target_link_libraries (swiftDependencyScan PRIVATE
13
13
swiftClangImporter
14
- swiftFrontend )
14
+ swiftFrontend
15
+ swiftCompilerModules )
Original file line number Diff line number Diff line change @@ -22,8 +22,7 @@ target_link_libraries(libSwiftScan PRIVATE
22
22
swiftDependencyScan
23
23
swiftDriverTool
24
24
swiftStaticMirror
25
- swiftRemoteInspection
26
- swiftCompilerStub )
25
+ swiftRemoteInspection )
27
26
28
27
set_target_properties (libSwiftScan
29
28
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