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

Final part of the binary targets implementation #2514

Merged
merged 1 commit into from
Jan 25, 2020

Conversation

hartbit
Copy link
Contributor

@hartbit hartbit commented Jan 12, 2020

The process for linking against the XCFrameworks mimics how Xcode does it:

  • Copying the correct .framework in the build directory,
  • Adding a -F option to the compiler arguments pointing to the build directory,
  • Adding a -F option to the linker arguments pointing to the build directory.
  • Adding a -framework option to the linker arguments with the name of the framework.

Based on #2511

@hartbit hartbit requested a review from aciidgh as a code owner January 12, 2020 19:27
@hartbit hartbit force-pushed the binary-targets-linking branch 2 times, most recently from 9e73749 to 7cfcb10 Compare January 13, 2020 20:45
@neonichu
Copy link
Contributor

In addition to frameworks, XCFrameworks can also contain a dynamic/static library + headers. We should handle that case here as well.

@hartbit
Copy link
Contributor Author

hartbit commented Jan 13, 2020

Thanks, I had forgotten about that case.

@hartbit hartbit force-pushed the binary-targets-linking branch 7 times, most recently from a3959cc to 92452a2 Compare January 14, 2020 20:41
@hartbit
Copy link
Contributor Author

hartbit commented Jan 14, 2020

I now handle static and dynamic libraries.

@hartbit hartbit force-pushed the binary-targets-linking branch from 92452a2 to fbe9cba Compare January 14, 2020 21:04
@aciidgh
Copy link
Contributor

aciidgh commented Jan 23, 2020

Some minor comments but otherwise LGTM

@hartbit hartbit force-pushed the binary-targets-linking branch from 94985e5 to 996e557 Compare January 24, 2020 20:39
@hartbit
Copy link
Contributor Author

hartbit commented Jan 24, 2020

@swift-ci smoke test

@hartbit hartbit force-pushed the binary-targets-linking branch 2 times, most recently from a1fa28e to e015289 Compare January 25, 2020 07:38
@hartbit
Copy link
Contributor Author

hartbit commented Jan 25, 2020

@swift-ci smoke test

@hartbit hartbit force-pushed the binary-targets-linking branch from e015289 to d4a24f8 Compare January 25, 2020 07:57
@hartbit
Copy link
Contributor Author

hartbit commented Jan 25, 2020

@swift-ci smoke test

@hartbit hartbit merged commit 12cce64 into swiftlang:master Jan 25, 2020
@hartbit hartbit deleted the binary-targets-linking branch January 27, 2020 20:07
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