mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ASTGen] Move regex literal parsing from SwiftCompilerSources to ASTGen
ASTGen always builds with the host Swift compiler, without requiring bootstrapping, and is enabled in more places. Move the regex literal parsing logic there so it is enabled in more host environments, and makes use of CMake's Swift support. Enable all of the regex literal tests when ASTGen is built, to ensure everything is working. Remove the "AST" and "Parse" Swift modules from SwiftCompilerSources, because they are no longer needed.
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "swift/Basic/InitializeSwiftModules.h"
|
||||
#include "swift/Basic/LLVMInitialize.h"
|
||||
#include "swift/DependencyScan/DependencyScanImpl.h"
|
||||
#include "swift/DependencyScan/DependencyScanningTool.h"
|
||||
@@ -131,9 +130,6 @@ void swiftscan_scanner_cache_reset(swiftscan_scanner_t scanner) {
|
||||
|
||||
swiftscan_scanner_t swiftscan_scanner_create(void) {
|
||||
INITIALIZE_LLVM();
|
||||
// We must initialize the swift modules responsible for parsing functionality,
|
||||
// such as parsing regex.
|
||||
initializeSwiftParseModules();
|
||||
return wrap(new DependencyScanningTool());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user