Commit graph

1766 commits

Author SHA1 Message Date
bors-servo
2fd8cbccdd Auto merge of #9588 - Jayflux:hotfix/9499, r=Wafflespeanut
add check for win32 or msys before running rustc-with-gold fixes #9499

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9588)
<!-- Reviewable:end -->
2016-02-13 23:32:49 +05:30
Jason Williams
939f409042 use python's built in platform module for detection, for more accuracy and cross platform support 2016-02-13 13:24:04 +00:00
Jayflux
45c9521dc9 add check for win32 or msys before running rustc-with-gold fixes #9499 2016-02-13 13:05:15 +00:00
bors-servo
088963f774 Auto merge of #9611 - danlrobertson:i9557, r=larsbergstrom
Download extra stdlib only when required: #9557

Split [`ensure_bootstrap`](https://github.com/danlrobertson/servo/blob/i9557/python/servo/command_base.py#L397-L422) into two phases including a phase checking the compiler, and a phase checking for target libraries. E.g.

```
    # should download the stdlib for "i686-unknown-linux-gnu", "arm-linux-androideabi"
    # and the hosts target
    ./mach build -d --target i686-unknown-linux-gnu --android
    # should only download the stdlib for the hosts target
    ./mach build -d
```

Let me know if I missed anything! There are a few parts of this patch in its current state that I'm not a huge fan of, but I couldn't think of a better way in the moment.

Still new to working on servo, so any comments or critiques are welcome!

Fix #9557

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9611)
<!-- Reviewable:end -->
2016-02-13 03:09:51 +05:30
Daniel Robertson
0df4118db9 Download extra std lib when cross-compiling #9557
Split ensure_bootstrap into two phases including a phase checking the
compiler, and a phase checking for target libraries.
2016-02-12 14:58:08 -05:00
bors-servo
76381418bd Auto merge of #9601 - vishy1618:issue_9442, r=Wafflespeanut
Exit mach with an error when building on a path with spaces. Fixes #9442

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9601)
<!-- Reviewable:end -->
2016-02-12 19:20:35 +05:30
Matt Brubeck
7c740d395b Add an rr chaos mode 2016-02-11 11:18:12 -08:00
Matt Brubeck
d11a70f53a Factor out common code for mach test-wpt/test-css 2016-02-11 10:01:05 -08:00
Suvish Varghese Thoovamalayil
ded08d5fe6 Exit mach with an error when building on a path with spaces. Fixes #9442 2016-02-11 16:28:58 +05:30
qpid
9801552535 Removed documentation referencing 'android-rs-glue', and updated a similar comment to mention 'build-apk' 2016-02-05 21:03:13 +05:30
bors-servo
9e68285d35 Auto merge of #9509 - servo:cocoa, r=Ms2ger
Deduplicate the cocoa crate.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9509)
<!-- Reviewable:end -->
2016-02-05 01:56:50 +05:30
bors-servo
d574b78313 Auto merge of #9469 - fhahn:compiletest2, r=jdm
Integrate compiletest_rs

This PR integrates `compiletest_rs` as suggested in #5646. I created a new  `tests/compiletest` directory which contains separate crates for the tests.

Currently this PR includes `compile-fail` tests for some lints (acutally all except  inheritance_integrity, beacuse I'm not sure how to include the dom stuff in a way the `#[dom_struct]` works).

I gathered that there should be more crates for which compiletests make sense and would appreciate any pointers to relevant crates.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9469)
<!-- Reviewable:end -->
2016-02-04 21:00:21 +05:30
Simon Sapin
809f633f25 Deduplicate the cocoa crate. 2016-02-04 16:19:02 +01:00
Florian Hahn
dfdbcabc2e Add infrastructure for compiletests
Also adds compilefail tests for some lints, closes #5646.
2016-02-04 16:00:09 +01:00
bors-servo
220ead14b1 Auto merge of #9449 - larsbergstrom:revert_gold_removal, r=mbrubeck
Revert "Remove gold hack, since it's in rustc automatically now"

This reverts commit 2955d895a4.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9449)
<!-- Reviewable:end -->
2016-02-01 14:57:02 +05:30
Anthony Ramine
74b6d8b70d Bump clipboard to remove libc 0.1.z dependency 2016-01-31 23:46:47 +01:00
Shing Lyu
83a492a533 Fixed nits 2016-01-30 09:40:46 +08:00
Shing Lyu
18b6817755 Add mach test-webidl command 2016-01-29 21:12:21 +08:00
Lars Bergstrom
864fe53956 Revert "Remove gold hack, since it's in rustc automatically now"
This reverts commit 2955d895a4.
2016-01-28 11:49:08 -06:00
Adam Casey
74524f03c4 Prepend PATH extras instead of append.
Fixes multirust issue #9437
2016-01-27 11:09:45 +00:00
Adam Casey
bd0f7d107b Fix ./mach run on Windows
Fix unicode PATH the same way as mozilla-central does it for windows.
Also append extra PATHs instead of prepending, for some reason that broke ./mach run
2016-01-24 22:29:47 +00:00
Adam Casey
25b0ee22f2 Fix build on windows when default python is MSYS64 python 2016-01-23 15:04:34 +00:00
bors-servo
525e77f64f Auto merge of #9385 - larsbergstrom:win32, r=frewsxcv,pcwalton,jdm,ecoal95
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 https://github.com/servo/mozjs/pull/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 -->
2016-01-23 07:27:27 +05:30
Jason Williams
13d98f153a adding check for windows then using Scripts instead of bin 2016-01-22 19:27:29 -06:00
Ms2ger
aa1ae9b355 Include the wpt lint in test-tidy --faster. 2016-01-21 14:34:03 +01:00
Vladimir Vukicevic
5b845cbf79 win32: force PATH to be non-unicode on win32, if virtualenv munges it 2016-01-20 08:38:26 -06:00
Vladimir Vukicevic
ee863fde59 win32: mach and build command fixes
- Add SERVO_USE_NIGHTLY_RUST env var to use the latest rust/cargo nightly snapshot
- Fix up looking for cargo binary (in cargo/bin/cargo, not bin/cargo)
- Fix up win32 executable checking (use .exe suffix)
- fix up win32 PATH handling (subprocess must use shell=True for PATH change to be honored)
2016-01-20 08:38:24 -06:00
bors-servo
77d3fbcca3 Auto merge of #9284 - bholley:bootstrap_stylo, r=SimonSapin
Add Partial Implementation of style DOM traits for Gecko, and some basic glue to let Gecko call into Servo

The wrapper stuff is partially-complete, modulo some unimplemented methods. The glue code is just a toy for now. Regardless, I think it's worth getting some of this stuff in-tree to minimize breakage.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9284)
<!-- Reviewable:end -->
2016-01-19 14:19:10 +05:30
bors-servo
dba1f27305 Auto merge of #9333 - servo:list-properties, r=larsbergstrom
Add a script to list all CSS properties parsed by Servo.

I’ve been asked for that list by two different people this week :)

r? @larsbergstrom

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9333)
<!-- Reviewable:end -->
2016-01-16 01:06:03 +05:30
Simon Sapin
2222f345c8 Make the properties list JSON and add some more info. 2016-01-15 18:13:12 +01:00
Simon Sapin
9d29c3d2f5 Add a script to list all CSS properties parsed by Servo. 2016-01-15 15:50:32 +01:00
Lars Bergstrom
2955d895a4 Remove gold hack, since it's in rustc automatically now 2016-01-15 07:18:00 -06:00
Ms2ger
d8511c8b8d Remove the legacy reftest framework. 2016-01-14 09:49:43 +01:00
Ms2ger
671cfd9940 Remove legacy reftest lints. 2016-01-14 09:49:42 +01:00
Bobby Holley
84f24a04a4 Basic wrappers and glue for GeckoLib. 2016-01-13 12:14:00 -08:00
bors-servo
a345608a94 Auto merge of #9273 - apopiak:fix_mach_test_error_9253, r=Wafflespeanut
add `faster` flag to `./mach test` command

in order to call `test-tidy` properly

close #9253

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9273)
<!-- Reviewable:end -->
2016-01-14 01:08:29 +05:30
apopiak
f34d2a53c8 add faster flag to ./mach test command in order to call test-tidy properly 2016-01-13 16:48:38 +01:00
PythonNut
fcd33e2b70 Call WPT lint directly in tidy, fixes #9189 2016-01-12 21:13:54 +00:00
PythonNut
3dfa89540a Fix literal braces in string formatting in tidy.py, fixes #9151 2016-01-11 01:32:24 +00:00
bors-servo
aa713c9fbb Auto merge of #9209 - bholley:geckolib, r=SimonSapin
Implement a geckolib target

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9209)
<!-- Reviewable:end -->
2016-01-10 07:14:17 +05:30
Bobby Holley
840df61ba3 Implement a geckolib target. 2016-01-09 12:37:56 -08:00
bors-servo
74226836ba Auto merge of #9118 - dsprenkels:test-tidy-faster, r=Wafflespeanut
Add 'test-tidy-faster' command to ./mach

For issue #9088, this adds a `--changes` option to `./mach test-tidy`. If this option is set, `tidy.py` will only check files that have been modified since `FETCH_HEAD`.

Mention: @Wafflespeanut

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9118)
<!-- Reviewable:end -->
2016-01-08 23:13:00 +05:30
Daan Sprenkels
a9b8d47d5d add a --faster option to ./mach test-tidy
which will
- only check files changed since the last merge by bors
- and skip the wpt-lint
2016-01-07 16:28:13 +01:00
bors-servo
ea4206e362 Auto merge of #9150 - mbrubeck:run-android, r=larsbergstrom
Make "mach run" use --android by default when enabled in .servobuild

When `.servobuild` has `android = true`, the `mach run` command should default to running on Android.

r? @larsbergstrom

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9150)
<!-- Reviewable:end -->
2016-01-05 01:22:53 +05:30
Matt Brubeck
b9fc84ddcc Use build.android config in mach run 2016-01-04 10:52:06 -08:00
bors-servo
9fa56ccfdf Auto merge of #9073 - dsprenkels:issue-8733, r=Wafflespeanut
tidy.py: remove duplicate code patterns in `check_rust(file_name, lines)`

This is an attempt at a reasonable fix for #8733.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9073)
<!-- Reviewable:end -->
2015-12-31 20:20:27 +05:30
Daan Sprenkels
c9f188d163 tidy.py: made check_rust(file_name, lines) more readable
also added a rule that requires a space before '-' (except in cases of scientific notation)
fixes #8733
2015-12-31 12:00:26 +01:00
Simon Sapin
b2af8567fa Rename rust-snapshot-hash to rust-nightly-date
… and remove mentions of "snapshots".

We now use rust-lang.org nightly builds rather than our own snapshots.
2015-12-30 13:36:47 +00:00
Simon Sapin
856eea3a0e Remove "Servo does not bootstrap 32bit snapshots of Rust" message
We now use rust-lang.org nightly builds rather than our own snapshots.
2015-12-30 12:06:54 +00:00
bors-servo
4e3a435450 Auto merge of #9062 - antrik:rust-gdb, r=SimonSapin
mach run --debug: Try using rust-gdb/rust-lldb if available

If the selected debugger (requested explicitly or detected by mozdebug)
is gdb or lldb, use rust-gdb or rust-lldb instead, if it's available in
the path and appears to be working.

(This should usually be the case when using the default debugger on
GNU/Linux or MacOS, as rust-gdb or rust-lldb is provided by the Rust
snapshot in use.)

Note: I cobbled this together without *any* previous Python experience -- so if it violates three dozen rules, and only works by luck on my own system during a favourable moon phase, don't hesitate to suggest improvements :-)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9062)
<!-- Reviewable:end -->
2015-12-30 04:34:42 +05:30