Skip to content

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