-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Allow a custom env for more xcrun
invocations
#1770
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
Allow a custom env for more xcrun
invocations
#1770
Conversation
@swift-ci please smoke test |
We shouldn't put the env in UserToolchain instead of getClangCompiler() |
I was 🤔 about that, but decided that there might be a need to have a different environment for manifest parsing vs. building. I guess if someone really needs that customisability, they can create a custom |
35827d2
to
485e35e
Compare
@swift-ci please smoke test |
@@ -129,6 +129,8 @@ public final class UserToolchain: Toolchain { | |||
return lookupExecutablePath(filename: getenv(variable), searchPaths: searchPaths) | |||
} | |||
|
|||
private let environment: [String:String] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: needs doc comment and space between :
and String
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we call it processEnv
maybe?
@@ -159,6 +161,7 @@ public final class UserToolchain: Toolchain { | |||
|
|||
public init(destination: Destination, environment: [String:String] = Process.env) throws { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: /s/[String:String/[String: String]/
aa22715
to
0897e28
Compare
@swift-ci please smoke test |
Basically a continuation of swiftlang#1766
0897e28
to
aef1c45
Compare
@swift-ci please smoke test |
This should be good to merge now. |
Basically a continuation of #1766