Skip to content

Remove ObjC support functions not needed on non-ObjC platforms #213

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 1 commit into from
Feb 15, 2017

Conversation

spevans
Copy link
Contributor

@spevans spevans commented Feb 15, 2017

When compiling on non-Apple platforms, this removes ObjC support functions that are not needed which allows removal of libdl.

Hopefully I have used the correct flags, HAVE_OBJC in the code and USE_OBJC in the makefile but if there are better flags to use please let me know.

I tested this by building the static library libdispatch.a and linking it into a statically built swift program which included import Dispatch and didnt see any missing references so the functions that have been excluded should be correct.

@MadCoder MadCoder merged commit ba4cac5 into swiftlang:master Feb 15, 2017
das pushed a commit that referenced this pull request Feb 21, 2017
Remove ObjC support functions not needed on non-ObjC platforms

Signed-off-by: Daniel A. Steffen <dsteffen@apple.com>
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