Ensure that cross compiler info is passed to GYP correctly #17449
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. |
|
On second thought, it might be easier to switch over to using the autotools build system with something like this: Thoughts? |
|
We currently don't want to pick up a dependency on autotools, and libuv doesn't check in the I'm curious, but what makes you think that libuv is always build for the host architecture? We have a number of cross-compiling bots which cross architectures quite frequently (even to android!). Is that because we "cross compile" with -m32 and -m64? |
|
Well, when I did configure with EDIT: My host system is OSX, hence clang on the host, but my arm-linux-gnueabi toolchain is GNU. |
|
saw approval from alexcrichton |
|
merging mcoffin/rust/master = bcc4ee0 into auto |
|
saw approval from alexcrichton |
|
merging mcoffin/rust/master = bcc4ee0 into auto |
|
fast-forwarding master to auto = 9cce2b7 |
Right now, libuv will always be built for the host system (at least when building on OSX) because the information about the cross compiler is never actually passed to GYP. I don't know how anybody has been managing to build cross compilers with this.
Note that, at least on OSX, there is a bug in GYP that will send clang flags to non-clang compilers and it will still attempt to use Xcode's libtool, so this doesn't completely fix the problem of cross-compiling on an OSX host, but it's a start.