Skip to content

Handle having multiple Swift toolchains on Windows #795

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
May 17, 2024

Conversation

plemarquand
Copy link
Contributor

It is possible for which swift to return multiple lines if the user has more than one Swift toolchain installed. Windows behavior is to use the first one, so we use it as well but also warn the user.

It is possible for `which swift` to return multiple lines if the user
has more than one Swift toolchain installed. Windows behavior is to use
the first one, so we use it as well but also warn the user.
@adam-fowler
Copy link
Contributor

@compnerd, @tristanlabelle what are your thoughts on this?

@compnerd
Copy link
Member

where on windows will return all the paths. Warning about the ambiguity makes sense.

The runtime is not ABI stable, so anything other than the single version installation seems fragile - there's no guarantee that the right runtime is being used. There's a desire to support multiple versions, which is why the installer has gained support for that, but the work to support parallel installs is incomplete.

This seems to be something which would be nice to support, indicating ambiguity seems like a positive, but we still have more work to do.

@adam-fowler adam-fowler merged commit f7d0f4b into swiftlang:main May 17, 2024
@plemarquand plemarquand deleted the multiple-windows-toolchains branch May 17, 2024 11:33
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.

4 participants