Skip to content

[SwiftCompilerModules] Link lib_InternalSwiftSyntaxParser to libswift #59209

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

Merged
merged 2 commits into from
Jun 8, 2022

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Jun 1, 2022

To use _RegexParser from SwiftSyntax.

  • Create libswiftCompilerModules_SwiftSyntax.a which is a subset of libswiftCompilerModules.a
  • Link lib_InternalSwiftSyntaxParser to libswiftCompilerModules_SwiftSyntax.a
  • Factor out swift runtime linking logic in CMake so that dynamic libraries can link to Swift runtime, in addition to executables
  • Link lib_InternalSwiftSyntaxParser to swift runtime

@rintaro
Copy link
Member Author

rintaro commented Jun 1, 2022

@swift-ci Please smoke test

@rintaro rintaro force-pushed the syntaxparser-libswift branch from de444a4 to befb55d Compare June 1, 2022 21:55
@rintaro
Copy link
Member Author

rintaro commented Jun 1, 2022

@swift-ci Please smoke test

@rintaro rintaro force-pushed the syntaxparser-libswift branch from befb55d to ce70510 Compare June 2, 2022 16:43
@rintaro
Copy link
Member Author

rintaro commented Jun 2, 2022

@swift-ci Please test

1 similar comment
@rintaro
Copy link
Member Author

rintaro commented Jun 2, 2022

@swift-ci Please test

rintaro added 2 commits June 2, 2022 12:23
To use _RegexParser from SwiftSyntax.

* Create 'libswiftCompilerModules_SwiftSyntax.a' which is a subset of
  'libswiftCompilerModules.a'
* Link 'lib_InternalSwiftSyntaxParser' to
  'libswiftCompilerModules_SwiftSyntax.a'
* Factor out swift runtime linking logic in CMake so that dynamic
  libraries can link to Swift runtime, in addition to executables
* Link 'lib_InternalSwiftSyntaxParser' to swift runtime
Now that libSwiftSyntaxParser links to libswift. We don't need this
anymore.
@rintaro rintaro force-pushed the syntaxparser-libswift branch from c7f0819 to 8826ef6 Compare June 2, 2022 20:10
@rintaro
Copy link
Member Author

rintaro commented Jun 2, 2022

@swift-ci Please test

@rintaro rintaro requested a review from eeckstein June 7, 2022 16:45
@rintaro rintaro marked this pull request as ready for review June 7, 2022 16:45
@rintaro rintaro changed the title [WIP][SwiftCompilerModules] Link lib_InternalSwiftSyntaxParser to libswift [SwiftCompilerModules] Link lib_InternalSwiftSyntaxParser to libswift Jun 7, 2022
Copy link
Contributor

@eeckstein eeckstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rintaro rintaro merged commit e1412a0 into swiftlang:main Jun 8, 2022
@rintaro rintaro deleted the syntaxparser-libswift branch June 8, 2022 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants