-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add proper support for custom Swift toolchains (#1025)
Previously we did some amount of handling if you passed a custom toolchain identifier. This didn't handle the case that the toolchain required new compatibility libraries to actually link your binary. To handle this we have to pass a new -L to the path in the root of the toolchain. We do this with a custom env var that we replace, similar to the DEVELOPER_DIR variable. Ideally this would be cached in memory, but we can't do that without editing bazel, luckily xcrun has a cache that makes this likely fast enough (about 0.01s for a cached invocation).
- Loading branch information
Showing
4 changed files
with
100 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters