-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 --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 |
@@ -3,6 +3,13 @@ Note: This is in reverse chronological order, so newer entries are added to the | |||
Swift 5.8 | |||
----------- | |||
|
|||
* [#5949] |
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.
I think we should sort these
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.
It's already in reverse chronological order, or would you like to see some other sorting?
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.
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-path
option is less fragile and easier to report errors on thanPKG_CONFIG_PATH
environment variable.Modifications:
Added
pkgConfigDirectory
toLocationOptions
, which is propagated toBuildPlan
as a function or initializer argument.Result:
--pkg-config-path
is available as a command-line option.