Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Android support #162
This changeset adds support for Android cross-compilation with the same restrictions applied to
There are a few things in this changeset that I'd like to iterate, assuming there are better or more generic solution that can be applied:
This is an example call to compile
This compilation process creates the shared library with the following ELF header:
This was referenced
Aug 31, 2016
We realized yesterday that the libpwq and libkqueue change actually broke the build on linux because the default for bionic-libc was backwards. Fix has been merged to libpwq and is pending for libkqueue. We'll need to wait for the libkqueue fix to be merged, then update the submodule heads again before this can be merged.
This is the error the CI is reporting, however I don't see any relation with the changes in this PR. Is it possible that this is a failure somewhere else? Let me know if I need to do anything else.
Looks like an assertion failure in libkqueue. You could try the tests again perhaps? This is unlikely to be to do with this Android port which is largely to do with Makefiles and headers.
Test Case 'TestURLSession.test_dataTaskWithURL' started at 12:48:08.279
@gonzalolarralde Do you have a companion PR for integrating with build-script in the swift project, or does this have to be done manually outside of the greater build?
If it is separate, is it possible to build a dispatch-aware foundation using this work?
By the way, this is fantastic! Thanks for doing all this!!
Hi @hpux735, I don't have a companion PR yet, however I've defined a set of options similar to the options needed to call build-script when compiling for Android.
However, I've been working on a dev environment that is compiling all the libraries, and enabling dispatch in foundation.
The project is here: https://github.com/gonzalolarralde/swifty-robot-environment/
The specific compilation script for foundation with all the dependencies + dispatch here: https://github.com/gonzalolarralde/swifty-robot-environment/blob/master/util/prepare_environment/070_build_corelibs_foundation.sh
Some shortcuts have been taken in this scripts. Sorry about that :) I'll try to put some time to add this to build-script and build-script-impl (not sure if the maintainers are accepting changes in this last one due to the Python refactor).