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

Avoids linking nghttp2 in Carthage project #450

Merged
merged 2 commits into from
May 6, 2019
Merged

Avoids linking nghttp2 in Carthage project #450

merged 2 commits into from
May 6, 2019

Conversation

WilliamIzzo83
Copy link
Contributor

This should address #449

# 2) Prevent linking of nghttp2 library
carthage_nghttp2_unlink_targets = [ "BoringSSL", "CgRPC", "SwiftGRPC" ]
targets_to_unlink = project.targets.select { |target| carthage_nghttp2_unlink_targets.include?(target.name) }
ldflags_to_remove = [ "-L/usr/local/Cellar/nghttp2/1.38.0/lib", "-lnghttp2" ]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would it be possible to make this more generic, removing any LDFLAG containing nghttp2?

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 can scan every target in the scheme if that is all right with you

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sounds good, but I was more thinking of removing any flag that contains nghttp2, even if there is not an exact match.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -1,4 +1,4 @@
module CNIONghttp2 {
umbrella "/Users/mrebello/Development/grpc-swift/.build/checkouts/swift-nio-http2.git-1684232237084789971/Sources/CNIONghttp2/include"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm a bit surprised by all the .git-1684232237084789971 suffixes disappearing. I'd expect the values to have changed, but that there would still be a suffix present. Which Swift version did you use to generate the new project? (I think we should stick with Swift 4.2 for now, to ensure that we don't break the build for Swift 4.2 users by generating the project with Swift 5.) See https://medium.com/xcblog/switching-swift-versions-inside-xcode-using-toolchains-755b28831c43 on selecting the Swift 4.2 toolchain.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Of course: I'm using swift 5. I'll fix that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

- makes nghttp2 flag search more generic (also searches in all available
targets)
- uses swift 4.2 toolchain
@MrMage MrMage merged commit 67a5352 into grpc:master May 6, 2019
@MrMage MrMage mentioned this pull request Jul 1, 2019
KyoheiG3 pushed a commit to KyoheiG3/grpc-swift that referenced this pull request Jul 1, 2019
* Avoids linking nghttp2 in Carthage project

* Applies the following fixes

- makes nghttp2 flag search more generic (also searches in all available
targets)
- uses swift 4.2 toolchain
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