Add --pkg-config-path to LocationOptions#5949
Conversation
|
I believe If I read this correctly, it is also not being passed to XCBuild support, yet, we should do that. |
Would it make sense to make them comma-separated? I wonder if just changing the type on the option declaration to
Is there anything to adjust other than this place in |
Not sure, but we should do whatever is the most canonical way to do this. Maybe @natecook1000 has hints |
5767258 to
bc0a809
Compare
|
@swift-ci please smoke test |
|
@swift-ci please smoke test |
|
@swift-ci smoke test |
@neonichu turns out, specifying it as |
|
@swift-ci smoke test |
…xd/pkg-config-path-option # Conflicts: # Sources/CoreCommands/Options.swift # Sources/CoreCommands/SwiftTool.swift
|
@swift-ci smoke test |
|
I was hoping we'd get this in before the 5.8 branch tomorrow, still possible? |
|
I'm not sure, it depends on whether anyone is available for a review. |
|
@swift-ci smoke test |
| Swift 5.8 | ||
| ----------- | ||
|
|
||
| * [#5949] |
There was a problem hiding this comment.
I think we should sort these
There was a problem hiding this comment.
It's already in reverse chronological order, or would you like to see some other sorting?
There was a problem hiding this comment.
I think the rest of the document has is non-reverse chronological order?
|
I can confirm that this flag works when cross-compiling SPM for Android with the latest 5.8 Dec. 20 snapshot, thanks. |
Resolves #5815.
Motivation:
--pkg-config-pathoption is less fragile and easier to report errors on thanPKG_CONFIG_PATHenvironment variable.Modifications:
Added
pkgConfigDirectorytoLocationOptions, which is propagated toBuildPlanas a function or initializer argument.Result:
--pkg-config-pathis available as a command-line option.