Skip to content

Conversation

@dgrove-oss
Copy link
Contributor

The Makefile.am change to add -ldl for the blocks runtime was something I missed in #139 (it is only needed when building libdispatch with an embedded blocks runtime without including the Swift API).

The rest are minimal fixes to get C compilation to succeed.

#define MACH_PORT_NULL (0)
#define MACH_PORT_DEAD (-1)

#define VOUCHER_CURRENT ((OS_OBJECT_BRIDGE voucher_t)(void *)~2ul)
Copy link
Contributor

Choose a reason for hiding this comment

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

please add:

#if OS_VOUCHER_ACTIVITY_SPI

guards around the uses of it instead

@dgrove-oss dgrove-oss force-pushed the linux-compile-fixes branch 2 times, most recently from 777dd96 to adc5775 Compare August 12, 2016 17:14
@dgrove-oss
Copy link
Contributor Author

redone as suggested and squashed. Should we try to get the modulemap problem sorted out in this pull request too? (ie, don't merge yet).

@MadCoder
Copy link
Contributor

I think the modulemap is a different enough issue that goes beyond just simple #if guards so I would make it a separate pull request, but YMMV.

@MadCoder
Copy link
Contributor

(or a separate commit at least anyway)

@dgrove-oss
Copy link
Contributor Author

ok. then I think we are done with this one. How do you want to manage getting the fixes onto both the master and the swift3 branches?

@MadCoder
Copy link
Contributor

I think @das should cherry-pick your commits on his branch, so I'll assign this to him to do that

.gitignore Outdated
configure
libtool
.dirstamp
dispatch/module.modulemap
Copy link
Contributor

@MadCoder MadCoder Aug 12, 2016

Choose a reason for hiding this comment

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

these should start with /

else you will ignore any file named dispatch/module.map from the repository which is not what you mean here, see gitignore(5):

       o   A leading slash matches the beginning of the pathname. For example,
           "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".

IOW foo/bar is the same as /**/foo/bar

@MadCoder
Copy link
Contributor

that all looks very good to me but for the gitignore nit.

@das: when you have time, can you cherry pick the changes here on your two pull requests for master & swift-3 ?

@dgrove-oss dgrove-oss force-pushed the linux-compile-fixes branch from c22f2da to 2c9f19e Compare August 12, 2016 20:59
@dgrove-oss
Copy link
Contributor Author

gitignore fixed. This builds for me, so cherry pick at will.

I'm now starting to debug to figure out why dispatch_api hangs. Have about an hour left this afternoon.

@MadCoder
Copy link
Contributor

👍

@das das merged commit 40a9bfb into swiftlang:das-darwin-006-merge-master Aug 15, 2016
@das
Copy link
Contributor

das commented Aug 15, 2016

I merged to das-darwin-006-merge-master and am cherry-picking onto das-darwin-006-merge-swift-3.0

@dgrove-oss dgrove-oss deleted the linux-compile-fixes branch August 25, 2016 14:03
das added a commit that referenced this pull request Feb 21, 2017
fixes for compilation/linking problems on linux

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