Skip to content

Updates and fixes to pkg-config #280

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

Merged
merged 5 commits into from
Apr 25, 2016
Merged

Conversation

aciidgh
Copy link
Contributor

@aciidgh aciidgh commented Apr 24, 2016

No description provided.

@aciidgh aciidgh mentioned this pull request Apr 24, 2016
public static func currentPlatform() -> Platform? {
// Lazily return current platform.
public static var currentPlatform = Platform.findCurrentPlatform()
private static func findCurrentPlatform() -> Platform? {
Copy link
Contributor

Choose a reason for hiding this comment

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

You should be able to use something like:

public static var currentPlatform = {
}()

which is a standard trick I believe.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried that I think got some error...I'll retry.

@ddunbar
Copy link
Contributor

ddunbar commented Apr 25, 2016

@swift-ci please test and merge

@swift-ci swift-ci merged commit 2d8ded1 into swiftlang:master Apr 25, 2016
@aciidgh aciidgh deleted the pkg_updates branch April 25, 2016 06:28
aciidgh pushed a commit to aciidgh/swift-package-manager that referenced this pull request Jan 11, 2019
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.

3 participants