Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upProperly pass bindgen cflags to bindgen. #148
Conversation
This gets me a cross build without anything else. It's probable that we can simplify a bunch of the stuff in the build.rs file with this patch, but I haven't tried to do that yet. Whitespace handling is a bit broken (I hope nobody tries to build this crate in a directory with spaces) but all the other uses of split_whitespace are equally broken in build.rs.
|
How did you even find this? |
I've poked too much at the moz.build files for cbindgen recently :) |
|
This should also allow us to cross-compile OS X builds from Linux, should we want that :) |
|
If we want to take this fix, this should probably get cleaned up so the replace is not needed and such, and so this is unified with Gecko's usage in: And then upstreamed. But this probably works as an immediate solution to unblock stuff. |
paulrouget
commented
Sep 4, 2018
|
Added I get:
|
|
My goodness, that file was well-hidden. Should we add a |
|
@paulrouget was it a clobber build? This touches configure stuff and I have to clobber a few times while writing the patch, the makefile.cargo condition is pretty broken. |
paulrouget
commented
Sep 4, 2018
Yes. Gonna retry just in case. |
|
If you still see it, then it'd be really unfortunate, because that means I cannot reproduce it even on the OS X loaner that I took... |
|
Please also ensure that the override is getting used, if you're using an outdated build that doesn't match this mozjs version it silently won't get used. |
|
I also have the same issue that Paul sees. I have verified that the mozjs_sys override with this branch is being used. |
paulrouget
commented
Sep 5, 2018
|
adding |
paulrouget
commented
Sep 11, 2018
|
Is this blocked on anything? |
|
Not that I know of (well, needs review). It does fix my build which needed a bunch of extra headers on OSX, but probably doesn't fix the bindgen issue. |
paulrouget
commented
Sep 21, 2018
|
@asajeffrey or @jdm, can you please review this? |
|
@bors-servo r+ |
|
|
Properly pass bindgen cflags to bindgen. This gets me a cross build without anything else. It's probable that we can simplify a bunch of the stuff in the build.rs file with this patch, but I haven't tried to do that yet. Whitespace handling is a bit broken (I hope nobody tries to build this crate in a directory with spaces) but all the other uses of split_whitespace are equally broken in build.rs. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/mozjs/148) <!-- Reviewable:end -->
|
|
|
We hit #152. |
|
@bors-servo retry |
Properly pass bindgen cflags to bindgen. This gets me a cross build without anything else. It's probable that we can simplify a bunch of the stuff in the build.rs file with this patch, but I haven't tried to do that yet. Whitespace handling is a bit broken (I hope nobody tries to build this crate in a directory with spaces) but all the other uses of split_whitespace are equally broken in build.rs. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/mozjs/148) <!-- Reviewable:end -->
|
|
|
I think this PR may need to be rebased to accommodate the changes in #153, so I'm just going to press the button instead since the actual travis job passed. |
c7ee3cc
into
android
emilio commentedSep 4, 2018
•
edited by larsbergstrom
This gets me a cross build without anything else.
It's probable that we can simplify a bunch of the stuff in the build.rs file
with this patch, but I haven't tried to do that yet.
Whitespace handling is a bit broken (I hope nobody tries to build this crate in
a directory with spaces) but all the other uses of split_whitespace are equally
broken in build.rs.
This change is