Skip to content

Conversation

@compnerd
Copy link
Member

@compnerd compnerd commented Jan 9, 2024

This is in preparation to use SwiftFormat from SourceKit-LSP which is distributed as part of the toolchain.

On Windows, we are now able to build swift-format against the shared Swift Syntax package, yielding an overall size reduction:

SPM
swift-format.exe: 75,683,840 b
CMake
swift-format.exe: 830,464 b
SwiftFormat.dll: 7,818,240 b

Net Savings: 67,035,136 b

@compnerd
Copy link
Member Author

compnerd commented Jan 9, 2024

This does require swiftlang/swift-cmark#69 as well as swiftlang/swift-markdown#141

@compnerd
Copy link
Member Author

compnerd commented Jan 9, 2024

CC: @ahoppen

Copy link
Contributor

@bnbarham bnbarham left a comment

Choose a reason for hiding this comment

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

LGTM now other than the copyright headers still 😅. Same in the other linked PRs.

And would be good to run full toolchain builds in swiftlang/swift#70814 first.

@compnerd
Copy link
Member Author

Now that the base change is in, yes, it is possible to do the toolchain test - which is not a "good" but really a "must" as we risk breaking the Windows installer build at the very least and we need to ensure that the packaged content is correct.

This is in preparation to use SwiftFormat from SourceKit-LSP which is
distributed as part of the toolchain.

On Windows, we are now able to build swift-format against the shared
Swift Syntax package, yielding an overall size reduction:

SPM
  swift-format.exe: 75,683,840 b
CMake
  swift-format.exe:    830,464 b
  SwiftFormat.dll:   7,818,240 b

Net Savings: 67,035,136 b
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.

3 participants