-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[ASTGen] Move regex literal parsing from SwiftCompilerSources to ASTGen #69838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@swift-ci Please smoke test |
lib/Parse/Lexer.cpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lib/Parse already depends on ASTGen (e.g. swift_ASTGen_buildTopLevelASTNodes) Instead of injecting the function, just use the @_cdecl function in ASTGen
1c69924 to
f32dfbc
Compare
|
@swift-ci Please smoke tests |
764ceb5 to
0b9dff3
Compare
|
@swift-ci Please smoke test |
|
swiftlang/swift-experimental-string-processing#699 |
1 similar comment
|
swiftlang/swift-experimental-string-processing#699 |
|
|
swiftlang/swift-experimental-string-processing#699 |
|
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.
swiftrt.obj is required for making things work
This reverts commit 5d0c5a6.
0b9dff3 to
24b44e3
Compare
|
@swift-ci Please smoke test |
|
This pull broke a test on the Android AArch64 CI, which doesn't have a host Swift compiler so it does a full bootstrap, ie not building the swift-syntax parser and now regex literals after this pull: The issue is that this test requires |
This test was missed in swiftlang#69838. Update to depend on swift_swift_parser (ie. "have a host Swift compiler").
This test was missed in swiftlang#69838. Update to depend on swift_swift_parser (ie. "have a host Swift compiler").
|
This test should be using However, in the near future we're going to require a Swift compiler on the host to build the Swift compiler, with "full bootstrap" going away entirely, so that we can fully switch over to (e.g.) the new Swift parser and driver, and remove the C++ implementations. |
(Continuation from #68892)
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.