Skip to content

generator: Do not include the host toolchain by default #173

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 1 commit into from
Jan 24, 2025

Conversation

euanh
Copy link
Contributor

@euanh euanh commented Jan 24, 2025

Not including the host toolchain matches the Swift Static Linux SDK. Users with experience of the static SDK will be familiar with the need to install a matching OSS toolchain to use it:

https://www.swift.org/documentation/articles/static-linux-getting-started.html#installing-the-sdk

Not including the host toolchain reduces the size of the SDK
bundle by about 2GB. This makes SDKs easier to move around,
wastes less storage space if multiple SDKs are installed, and
speeds up the SDK build process - especially the first build,
as the host toolchain does not have to be downloaded.

Wasm SDKs also do not include the host toolchain.

@euanh euanh requested a review from MaxDesiatov as a code owner January 24, 2025 09:37
@euanh euanh added the enhancement New feature or request label Jan 24, 2025
@euanh euanh requested a review from kateinoigakukun January 24, 2025 09:37
@euanh
Copy link
Contributor Author

euanh commented Jan 24, 2025

Copy link
Member

@kateinoigakukun kateinoigakukun left a comment

Choose a reason for hiding this comment

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

All Wasm SDKs are not shipping the host toolchain at all today. It makes sense to me to change the default.

@euanh
Copy link
Contributor Author

euanh commented Jan 24, 2025

@swift-ci test

@euanh euanh force-pushed the default-exclude-host-toolchain branch from faad2ea to d6c27b4 Compare January 24, 2025 10:34
@euanh
Copy link
Contributor Author

euanh commented Jan 24, 2025

All Wasm SDKs are not shipping the host toolchain at all today. It makes sense to me to change the default.

👍 I've added that to the PR description.

@euanh
Copy link
Contributor Author

euanh commented Jan 24, 2025

@swift-ci test

Not including the host toolchain matches the Swift Static Linux
SDK.  Users with experience of the static SDK will be familiar with
the need to install a matching OSS toolchain to use it:

   https://www.swift.org/documentation/articles/static-linux-getting-started.html#installing-the-sdk

Not including the host toolchain reduces the size of the SDK
bundle by about 2GB.   This makes SDKs easier to move around,
wastes less storage space if multiple SDKs are installed, and
speeds up the SDK build process - especially the first build,
as the host toolchain does not have to be downloaded.

WASM SDKs also do not include the host toolchain.
@euanh euanh force-pushed the default-exclude-host-toolchain branch from d6c27b4 to 7ff0b12 Compare January 24, 2025 10:47
@euanh
Copy link
Contributor Author

euanh commented Jan 24, 2025

@swift-ci test

@euanh euanh enabled auto-merge (squash) January 24, 2025 10:49
@euanh euanh merged commit 7a833f3 into swiftlang:main Jan 24, 2025
2 of 3 checks passed
@xtremekforever
Copy link
Contributor

Hey guy, this is awesome. I'm glad I could contribute to this!

@euanh
Copy link
Contributor Author

euanh commented Jan 24, 2025

Hey guy, this is awesome. I'm glad I could contribute to this!

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants