Repository navigation
Conversation
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @pcwalton (or someone else) soon. |
|
@vvuk This needs a rebase. |
There was a problem hiding this comment.
I think you can use std::thread::sleep here.
7b6f3fe to
975ff99
Compare
|
Ok, I tracked down the unicode PATH junk. virtualenv's activate_this.py script is doing that munging, because it's using some file functions that are somewhere returning a unicode string on windows (needlessly). I added a comment and do the ascii-fying only on windows... I think doing ascii is as correct as anything else, because unicode env vars will simply not work with this anyway to begin with. For the thread sleep bit, std::thread::sleep states that a signal won't cause an early return, whereas usleep() would get woken up by a signal... if std::thread::sleep is still okay, we can change that in a followup commit as it's not really windows specific. |
3880829 to
0ba7f93
Compare
|
FWIW - the plan is to add a Windows buildbot so that checks are run on Windows for every commit, correct? Or is it too early for that? |
|
Yup, that's the plan. I was going to work with someone to help make that happen, I just can't maintain it myself. |
|
Awesome. I don't use Linux anywhere but VMs anymore, and Rust on Haiku is still too alpha for Servo, so getting Servo working on Windows might motivate me to contribute... |
|
@vvuk any way for me to help you with the windows buildbot? |
|
|
This looks good to me. Not sure who else should review—@jdm maybe? |
|
Very little of this stuff appears to be in my area of expertise. @frewsxcv do you want to take a look at the python-related changes? |
|
FYI, there's a build error. Check out Travis |
|
Yes, this build can't succeed until the dependent pull requests are all merged in. The link in the first comment has the full list and info. |
|
Just to link them all together, this is blocked on: |
|
☔ The latest upstream changes (presumably #8288) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Updated list: |
|
@lygstate looks like servo/skia#74 is done? |
|
wow looks great hope this can be merged now |
|
I've had a go at rebasing (https://github.com/adamncasey/servo/tree/win32-rebase) and getting it to compile again. A number of packages need cargo updating (but not too far, or else we hit use rustc-plugin; problems). Might be useful if these cargo updates are done in a separate PR. However, I'm stuck on getting gaol and servo-glutin to build. https://gist.github.com/adamncasey/58da60a5672b62c9232e servo-glutin could just be a cargo update or small change to fix. |
|
Servo-glutin build fixes: servo/glutin#56 |
|
I stubbed out what's required for gaol to build on windows: https://github.com/adamncasey/gaol I'm also finding that this commit to libANGLE broke the build on windows. Removing that one line fixes it.: servo/angle@429f752 The final problem I've hit is that I get linker errors at the end of the build: This didn't happen when I built @vvuk 's code a few weeks back, so I'm a bit confused. |
|
This hacks around/fixes the angle issue: |
|
I filed servo/mozjs#70 for the JSTracer::setTracingLocation issue... gcc doesn't seem to be generating a public symbol for an inline-defined method. |
|
Using the msys python (see issue #9168) With the angle hack and the mozjs fix, and using the gaol linked above with win32 stubs, I get a complete build. |
|
The angle issue has been merged in: So, we now need to do the following to land:
|
|
I've added the changes to cfg-out gaol and done a bunch of cargo updates here: We now just need to wait for mozjs to land and then to add a readme! |
|
Im working on the readme, i need to start again though i think, some things have changed since i last ran through it all. @vvuk do we still need to install the native python? (at the top of the hackpad) Last night i hit the angle issue, is this now fixed on @larsbergstrom's win32 branch? or do i need to build of another branch? |
I haven't tried without it -- the mozjs makefile.cargo still explicitly references it. I'll try without it shortly and see what happens. |
|
@Jayflux my win32 branch does also have the angle update (it was landed, so it's just a cargo update). I'm in the middle of a small rebase because my hacky gaol fixes weren't split into a commit and didn't quite work well on some other platforms :-) I also need to make sure Cargo.lock is in sync across all the ports, since I did a bit of hand-editing on the main one just to get things to work. Should be up in ~30 minutes. |
|
Just did another |
|
The native python seems to still be required; the issue seems to be that sys.executable is set incorrectly if python is invoked with an explicit c:/... path. if it's invoked as /c/proj/..., then the path ends up correct. |
|
moved to #9385 |
…oal95 Win32 support r? @frewsxcv for python stuff r? @pcwalton for the "remove usage of Gaol" stuff for Win32 r? anybody else for misc cargo.lock updates, etc. This replaces #7878. This works best with servo/mozjs#71, too, to enable static linking, but can be run without (via some PATH hackery). The instructions are here, and will be added to a .md file in the repo once the mozjs changes also land: https://hackpad.com/Servo-on-Windows-C1LPcI2bP25 I'd like to get these changes landed because I've been rebasing them for months, they're otherwise quite stable, and don't affect our other platforms and targets. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9385) <!-- Reviewable:end -->
This depends on a bunch of other PRs; full instructions and outstanding PRs are at https://hackpad.com/Servo-on-Windows-C1LPcI2bP25
Most of the servo-side work is just some glue bits for fonts and some build changes.