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 upMSVC support for Servo, and CMake builds for native code #11756
Conversation
highfive
commented
Jun 16, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
Jun 16, 2016
|
@bors-servo try (by request) |
|
|
|
Given that Gecko is dropping 2013, is there any point to us trying to? |
|
@bors-servo try |
MSVC support for Servo, and CMake builds for native code This is the base PR for MSVC builds of servo and dependent crates. It's got replacements in the Cargo.toml to pull in the right versions, to make sure that crates were properly converted to CMake for all other platforms, not just Windows. (Servo builds with MSVC 2015 with this PR; also with 2013, though a manual change in rust-mozjs to select a different set of bindings is needed.) This PR isn't quite ready yet, but I want bors-servo to do builds. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11756) <!-- Reviewable:end -->
|
|
|
|
d421f99
to
7e5b33c
|
@metajack can we get ninja installed on the builders, or should I try to figure out the parallel make issue? |
68347ff
to
3a5ae33
|
|
|
This is looking good. I had a few comments, but the main stuff left to do is:
Reviewed 9 of 9 files at r1, 11 of 11 files at r2, 1 of 1 files at r3, 2 of 2 files at r4, 10 of 10 files at r5, 1 of 1 files at r6, 2 of 2 files at r7, 7 of 7 files at r8, 1 of 1 files at r9, 1 of 1 files at r10, 1 of 1 files at r11, 1 of 1 files at r12, 8 of 8 files at r13, 1 of 1 files at r14, 1 of 1 files at r15, 1 of 1 files at r16, 1 of 1 files at r17, 1 of 1 files at r18, 2 of 2 files at r19. components/script/build.rs, line 11 [r10] (raw file):
I'm not sure what you mean by it generating separate makefiles. Which build generator did that? Nmake? You might mention that the VS generator serializes all custom commands, so they won't run in parallel even if it is successful. I seem to recall nmake had a similar behavior, but not 100% sure. components/script/build.rs, line 20 [r11] (raw file):
I think we should use vcvars.bat to do this and check for the right stuff in mach. I don't remember needing to do any of this, but I was definitely running in cmd.exe shells that had run vcvars.bat components/script/CMakeLists.txt, line 93 [r2] (raw file):
Where were these going before? It's not clear why this bit is needed. components/script/CMakeLists.txt, line 82 [r19] (raw file):
Isn't this weird to have a target that has no dependencies? components/servo/Cargo.toml, line 21 [r4] (raw file):
We'll need to remove this when it's ready to finally land. Comments from Reviewable |
|
Review status: all files reviewed at latest revision, 5 unresolved discussions, some commit checks failed. components/script/build.rs, line 11 [r10] (raw file):
|
|
Hmm, we'll need to bump version numbers on everything as well... I forgot to do that, I'll make more PRs. |
|
@bors-servo r+ |
|
|
MSVC support for Servo, and CMake builds for native code This is the base PR for MSVC builds of servo and dependent crates. It's got replacements in the Cargo.toml to pull in the right versions, to make sure that crates were properly converted to CMake for all other platforms, not just Windows. (Servo builds with MSVC 2015 with this PR; also with 2013, though a manual change in rust-mozjs to select a different set of bindings is needed.) This PR isn't quite ready yet, but I want bors-servo to do builds. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11756) <!-- Reviewable:end -->
|
|
|
Gah, looks like the CEF (and possibly geckolib?) Cargo.lock files are not updated:
An easy way to "fix" this is to copy the components/servo/Cargo.lock over them and then do Once @SimonSapin lands the removal of the |
|
@bors-servo r+ (the additional |
|
|
MSVC support for Servo, and CMake builds for native code This is the base PR for MSVC builds of servo and dependent crates. It's got replacements in the Cargo.toml to pull in the right versions, to make sure that crates were properly converted to CMake for all other platforms, not just Windows. (Servo builds with MSVC 2015 with this PR; also with 2013, though a manual change in rust-mozjs to select a different set of bindings is needed.) This PR isn't quite ready yet, but I want bors-servo to do builds. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11756) <!-- Reviewable:end -->
|
|
vvuk commentedJun 16, 2016
•
edited by larsbergstrom
This is the base PR for MSVC builds of servo and dependent crates. It's got replacements in the Cargo.toml to pull in the right versions, to make sure that crates were properly converted to CMake for all other platforms, not just Windows. (Servo builds with MSVC 2015 with this PR; also with 2013, though a manual change in rust-mozjs to select a different set of bindings is needed.)
This PR isn't quite ready yet, but I want bors-servo to do builds.
This change is