Skip to content
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

[SR-174] Provide a script that installs Swift for the current platform #42796

Closed
lilyball mannequin opened this issue Dec 10, 2015 · 2 comments
Closed

[SR-174] Provide a script that installs Swift for the current platform #42796

lilyball mannequin opened this issue Dec 10, 2015 · 2 comments
Labels

Comments

@lilyball
Copy link
Mannequin

lilyball mannequin commented Dec 10, 2015

Previous ID SR-174
Radar None
Original Reporter @lilyball
Type Task
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Project Infrastructure
Labels Task
Assignee None
Priority Medium

Watchers: @shahmishal

md5: a223ff23b359cc9926fe9216865ddfe6

Issue Description:

There should be a script in swift/utils that installs Swift in the correct location for the current platform. It should either invoke build-script to build it, or it should rely on you having already built swift and just install a named build.

On OS X, the install process should consist of generating and installing an installer package for a Toolchain in /Library/Developer/Toolchains/, just as how the snapshot download from swift.org installs one. It should either update swift-latest.xctoolchain or perhaps a separate symlink swift-development.xctoolchain. I'm not sure if it needs to generate and install the separate symbols download (possibly optional).

On other platforms, it should probably build a root that installs into /usr/local, with the install location configurable, though I'm not sure if there's another alternative that makes more sense (such as providing an xcrun-like behavior so you can have several swift's installed simultaneously and select among them with env vars or an xcrun-like tool).

@lilyball
Copy link
Mannequin Author

lilyball mannequin commented Dec 10, 2015

See https://lists.swift.org/pipermail/swift-dev/Week-of-Mon-20151207/000196.html for an example of a script that builds a toolchain (though it's installing inside of Xcode instead of in /Library/Developer/Toolchains/).

@shahmishal
Copy link
Member

#1630

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant