File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ set(LLVM_EXPORTED_SYMBOL_FILE
6
6
7
7
add_swift_host_library (libSwiftScan SHARED
8
8
libSwiftScan.cpp
9
- c-include-check.c )
9
+ c-include-check.c
10
+ HAS_SWIFT_MODULES )
10
11
11
12
if (${SWIFT_HOST_VARIANT_SDK} IN_LIST SWIFT_DARWIN_PLATFORMS )
12
13
# Workaround for a linker crash related to autolinking: rdar://77839981
@@ -23,7 +24,7 @@ target_link_libraries(libSwiftScan PRIVATE
23
24
swiftDriverTool
24
25
swiftStaticMirror
25
26
swiftRemoteInspection
26
- swiftCompilerStub )
27
+ swiftCompilerModules )
27
28
28
29
set_target_properties (libSwiftScan
29
30
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