Skip to content

Enable linking of imported Swift static frameworks#566

Merged
swiple-rules-gardener merged 7 commits intobazelbuild:masterfrom
kastiglione:dl/enable-linking-of-imported-swift-static-frameworks
Sep 6, 2019
Merged

Enable linking of imported Swift static frameworks#566
swiple-rules-gardener merged 7 commits intobazelbuild:masterfrom
kastiglione:dl/enable-linking-of-imported-swift-static-frameworks

Conversation

@kastiglione
Copy link
Copy Markdown
Contributor

This supports the case where a non-Swift target, such as an ios_application, has a apple_static_framework_import dependency whose binary depends on the Swift runtime.

Resolves #557.

@kastiglione
Copy link
Copy Markdown
Contributor Author

@sergiocampama if this looks about right I will add some tests.

@kastiglione
Copy link
Copy Markdown
Contributor Author

Updated to add tests.

@kastiglione
Copy link
Copy Markdown
Contributor Author

The test failures look unrelated.

@kastiglione kastiglione force-pushed the dl/enable-linking-of-imported-swift-static-frameworks branch from 54d8653 to fbac918 Compare September 5, 2019 22:23
Copy link
Copy Markdown
Contributor

@sergiocampama sergiocampama left a comment

Choose a reason for hiding this comment

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

small nit but looks good, thanks for the tests!

@kastiglione
Copy link
Copy Markdown
Contributor Author

Fixed the nit. Thanks for reviewing.

@sergiocampama
Copy link
Copy Markdown
Contributor

I'm a bit worried about that generated header without the disclaimer at the top, but I understand why it is that way. if our tools complain, I'll fix it internally

@kastiglione
Copy link
Copy Markdown
Contributor Author

If necessary I can change the script to have a disclaimer.

@sergiocampama
Copy link
Copy Markdown
Contributor

no need, we figured it out :)

swiple-rules-gardener added a commit that referenced this pull request Sep 6, 2019
…d-swift-static-frameworks

PiperOrigin-RevId: 267639766
@swiple-rules-gardener swiple-rules-gardener merged commit 7d677a8 into bazelbuild:master Sep 6, 2019
rebello95 added a commit to envoyproxy/envoy-mobile that referenced this pull request Sep 6, 2019
We can now remove the hack for building the Objective-C demo now that bazelbuild/rules_apple#566 has merged (thanks @kastiglione!).

Signed-off-by: Michael Rebello <me@michaelrebello.com>
@kastiglione kastiglione deleted the dl/enable-linking-of-imported-swift-static-frameworks branch September 6, 2019 19:00
rebello95 added a commit to envoyproxy/envoy-mobile that referenced this pull request Sep 6, 2019
We can now remove the hack for building the Objective-C demo now that bazelbuild/rules_apple#566 has merged (thanks @kastiglione!).

Signed-off-by: Michael Rebello <me@michaelrebello.com>
@kastiglione
Copy link
Copy Markdown
Contributor Author

kastiglione commented Sep 9, 2019

This caused a problem in cases where a Swift implemented apple_static_framework_import was a dep of an app that had other swift deps. Proposed fix is here: bazelbuild/rules_swift#306

jpsim pushed a commit to envoyproxy/envoy that referenced this pull request Nov 28, 2022
We can now remove the hack for building the Objective-C demo now that bazelbuild/rules_apple#566 has merged (thanks @kastiglione!).

Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: JP Simard <jp@jpsim.com>
jpsim pushed a commit to envoyproxy/envoy that referenced this pull request Nov 29, 2022
We can now remove the hack for building the Objective-C demo now that bazelbuild/rules_apple#566 has merged (thanks @kastiglione!).

Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: JP Simard <jp@jpsim.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Swift implemented frameworks in apple_static_framework_import

5 participants