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

Add custom macOS Swift toolchain support #214

Merged
merged 2 commits into from
May 3, 2019

Conversation

keith
Copy link
Member

@keith keith commented May 2, 2019

This allows you to pass --define=SWIFT_CUSTOM_TOOLCHAIN=toolchain.id
to specify a custom swift toolchain like the ones downloaded from
https://swift.org/download/#snapshots to use.

This allows you to pass `--define=SWIFT_CUSTOM_TOOLCHAIN=toolchain.id`
to specify a custom swift toolchain like the ones downloaded from
https://swift.org/download/#snapshots to use.
@keith keith force-pushed the ks/toolchains branch from 65fc364 to e885ebc Compare May 2, 2019 22:34
@keith
Copy link
Member Author

keith commented May 2, 2019

I'm not exactly sure where in the current docs structure to add this, thoughts?

@allevato
Copy link
Member

allevato commented May 3, 2019

Maybe add something like this in README.md above the Future Work section?

## Building with Custom Toolchains

**macOS hosts:** You can build with a custom toolchain installed in
`/Library/Developer/Toolchains` instead of Xcode's default. To do so, pass the
following flag to Bazel:

```
--define=SWIFT_CUSTOM_TOOLCHAIN=toolchain.id
```

where `toolchain.id` is the value of the `CFBundleIdentifier` key in the
toolchain's Info.plist file.

**Linux hosts:** At this time, Bazel uses whichever `swift` executable is
encountered first on your `PATH`.

@keith
Copy link
Member Author

keith commented May 3, 2019

Updated with that blurb

Copy link
Member

@allevato allevato left a comment

Choose a reason for hiding this comment

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

Thanks!

@swiple-rules-gardener swiple-rules-gardener merged commit 40298b4 into bazelbuild:master May 3, 2019
swiple-rules-gardener added a commit that referenced this pull request May 3, 2019
PiperOrigin-RevId: 246558164
@keith keith deleted the ks/toolchains branch May 3, 2019 19:56
tymurmustafaiev pushed a commit to tymurmustafaiev/rules_swift that referenced this pull request Jul 19, 2023
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