Skip to content
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

#851 Fix build command to work also with Swift 5 #852

Merged
merged 1 commit into from
Mar 28, 2019

Conversation

dstranz
Copy link
Contributor

@dstranz dstranz commented Mar 27, 2019

Command proposed to build swift-protobuf in Readme file
swift build -c release -Xswiftc -static-swift-stdlib
doesn't work with Swift 5, it crashed on linking phase, full crash log available in issue #851

Replacing -Xswiftc --static-swift-stdlib with --static-swift-stdlib seems to fix the issue.

So successful command should looks like:
swift build --static-swift-stdlib -c release

I've tested it with swift 5 and 4.2.

@tbkka tbkka merged commit 645b94b into apple:master Mar 28, 2019
@tbkka
Copy link
Collaborator

tbkka commented Mar 28, 2019

Thanks!

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.

2 participants