On 7 June 2016 at 17:49, Stephen Hines <
srh...@google.com> wrote:
> Actually, the biggest problem we face is because of "auto-detection" of
> target architecture.
Thought so. That's what bit me when trying to port the 128-bit FP patch:
https://android-review.googlesource.com/#/c/125910/
> That part of the RT cmake rules really makes it
> difficult to cross-compile all/any of the necessary targets that we have. I
> have some hacky workarounds I am using to experiment with building upstream
> compiler-rt, but I need to finish making it a bit more robust before
> finalizing some of our new build scripts.
This is a subject that is being put on hold for a long time on the list.
I think it's about time for us to finally have a serious conversation
about how to actually cross-compile RT. A lot of people do,
downstream, using their own devices, and it doesn't make sense that
none of that is upstream.
Of course, such a patch would only be reasonable upstream if it works
on vanilla LLVM. It is harder, I know, but I recommend that we try to
do that, otherwise we'll just fall into another corner. :)
I also think that there are enough people interested in making that
work to warrant a full scale change in RT.
When you send your proposal, you should copy folks like me, Dumbar,
Samsonov, Saleem, Joerg, Roelofs, Chandler, Chris Bieneman, Chris
Mathews, Kritstof Beyls, Ben Kramer, Daniel Sanders, Adhemerval, Reid,
Eric. We need to include libc++ as well as Clang folks, to make sure
the solution works for everybody.
Many of those folks already had a go in cross-compiling, and even
having multiple RT's per build. You may realise that a lot of what
you're trying to do was already accomplished by them.
It may take a while, but the only long lasting solution is one that
works for most people. Anything else will be just another corner we'll
be trying to get out later.
cheers,
--renato