aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/command_base.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix #12359: make ensure_bootstrap check for host std if rustc exists.Simon Sapin2016-07-091-4/+3
|
* Remove the "./mach build-stable" subcommandSimon Sapin2016-07-081-4/+1
| | | | It is replaced by "./mach build-gecklibo" using stable Rust.
* Fix "looking for rustc at …" message for stable when already bootstrappedSimon Sapin2016-07-081-2/+3
| | | | | | | | | | Also always download from static-rust-lang-org.s3.amazonaws.com instead of static.rust-lang.org. They host the same content, but the latter goes through a CDN and has a TLS certificate that failed to verify and some Python versions: https://github.com/servo/servo/issues/3582 https://github.com/servo/servo/pull/3971
* Add mach build-stable to build with stable rustcGabriel Poesia2016-06-301-11/+29
| | | | | | Github issue: #11806 Building with current stable rust (1.9.0) still fails because of feature pragmas in some dependencies (e.g. serde_item).
* Auto merge of #11262 - campaul:add_version_flag, r=Manishearthbors-servo2016-06-291-0/+16
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add `--version` flag - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy --faster` does not report any errors - [X] These changes fix #11241 (github issue number if applicable). Either: - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ Not 100% sure of a good way to test this, so I'm submitting as is for feedback. Manually testing it appears to work fine. <!-- 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/11262) <!-- Reviewable:end -->
| * Add `--version` flagCameron Paul2016-06-281-0/+16
| |
* | Pass Ctr+C to underlying process when invoking commands through mach.Josh Matthews2016-06-171-1/+14
| |
* | Only enable borderless browserhtml window on OSX.Adam Casey2016-06-071-0/+9
| | | | | | | | Pass browserhtml path as relative path to avoid a mingw->windows path conversion
* | Add FreeBSD to `host_triple`Daniel Robertson2016-06-051-0/+2
| | | | | | | | | | Add FreeBSD to `host_triple` so that the correct nightly compiler will be downloaded.
* | Remove the gonk portLars Bergstrom2016-05-271-64/+1
| |
* | Auto merge of #11378 - mbrubeck:debug-mozjs, r=larsbergstrombors-servo2016-05-271-0/+7
|\ \ | |/ |/| | | | | | | | | | | | | | | | | Default to the same Cargo features in all build commands Fixes #8308 and #7327. r? @larsbergstrom <!-- 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/11378) <!-- Reviewable:end -->
| * Default to the same Cargo features in all build commandsMatt Brubeck2016-05-271-0/+7
| | | | | | | | Fixes #8308 and #7327.
* | Reduce 'android-18' duplication, as originally done by wenderenMitchell Hentges2016-05-201-0/+3
|/ | | | Use android.platform (and $ANDROID_PLATFORM) for configuration, apply 'android-18' default
* Auto merge of #11122 - mbrubeck:unify-builds, r=larsbergstrombors-servo2016-05-111-1/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the same build environment and features for CEF, Servo, Gonk, Geckolib * Remove unnecessary dependencies and features from top-level Cargo.tomls. The features for each crate will be computed based on the union of features specified in the dependency graph. Specifying the same ones again just adds more ways for them to get out of sync. * Move all cargo build environment variables into CommandBase Fixes #11112. r? @metajack (Not included: CI test to make sure #11112 doesn't regress again.) <!-- 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/11122) <!-- Reviewable:end -->
| * Move all cargo build environment variables into CommandBaseMatt Brubeck2016-05-101-1/+11
| |
* | Override $CARGO_HOME only if cargo-home-dir is in .servobuildMatt Brubeck2016-05-111-2/+3
|/ | | | | | | | | | | | | | | This preserved the fix from #11097 in the situation where `$CARGO_HOME` and `cargo-home-dir` in `.servobuild` are both present: `.servobuild` should win. But it changes the behavior when `$CARGO_HOME` is present and `.servobuild` is not: Then `$CARGO_HOME` should be used. We now check the following values in order of priority and use the first one that is found: 1. `cargo-home-dir` in `.servobuild` 2. `CARGO_HOME_DIR` in the enivironment 3. default value (`<servo-repo>/.cargo`)
* Override always 'CARGO_HOME' env variable.Tetsuharu OHZEKI2016-05-101-2/+1
| | | | | | | | | | | | | This use always `cargo-home-dir` in `/.servobuild` even if you set `CARGO_HOME` in your shell. If you use [racer][racer] with [rustup (multirust.rs)][rustup], you may set `CARGO_HOME` env variable. Then the previous code would be a problem which does not use `cargo-home-dir` in `/.servobuild`. [racer]: https://github.com/phildawes/racer [rustup]: https://github.com/rust-lang-nursery/rustup.rs
* Improve build target argument handlingMátyás Mustoha2016-05-051-6/+7
|
* Auto merge of #10620 - autrilla:mach-command-improvements, r=Wafflespeanutbors-servo2016-04-171-11/+19
|\ | | | | | | | | | | | | | | Improved readability of ensure_bootstrapped <!-- 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/10620) <!-- Reviewable:end -->
| * Improved readability of ensure_bootstrappedAdrian Utrilla2016-04-161-11/+19
| |
* | mach install now builds servo if it hasn't been built beforeAdrian Utrilla2016-04-151-2/+12
|/
* Fix ./mach runUK9922016-03-271-0/+3
|
* Remove rustc wrapper script for gold in favor of using RUSTFLAGSLars Bergstrom2016-03-251-1/+1
|
* Read SERVO_RUSTC_WITH_GOLD if no .servobuildedunham2016-03-221-1/+7
| | | | | | | | | | The build system needs to disable gold on arm64 slaves. Other configuration is done through environment variables, and buildbot hosts currently don't use a .servobuild file at all. This change adds the `get_env_bool` function to cast an environment variable's string contents into a Python boolean, and uses it to retrieve the optional SERVO_RUSTC_WITH_GOLD setting.
* Remove unused use_nightly_rust function.Ms2ger2016-03-221-5/+0
|
* Remove submodule update from mach bootstrap. Fixes #10010malayaleecoder2016-03-161-2/+0
|
* Detect Cygwin environment on WindowsWei Tang2016-03-091-1/+1
| | | | | | Currently if Servo is built using Cygwin, it is incorrectly classified as "unknown" host, which makes downloading Rust and Cargo fail. This commit fixes that.
* Now we use python for os_type, we need to catch 'windows' as well as ↵Jason Williams2016-02-131-1/+1
| | | | 'mingw65_nt- fixes #9597'
* Auto merge of #9588 - Jayflux:hotfix/9499, r=Wafflespeanutbors-servo2016-02-131-1/+2
|\ | | | | | | | | | | | | | | 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 -->
| * add check for win32 or msys before running rustc-with-gold fixes #9499Jayflux2016-02-131-1/+2
| |
* | use python's built in platform module for detection, for more accuracy and ↵Jason Williams2016-02-131-2/+4
|/ | | | cross platform support
* Download extra std lib when cross-compiling #9557Daniel Robertson2016-02-121-4/+7
| | | | | Split ensure_bootstrap into two phases including a phase checking the compiler, and a phase checking for target libraries.
* Removed documentation referencing 'android-rs-glue', and updated a similar ↵qpid2016-02-051-4/+4
| | | | comment to mention 'build-apk'
* Revert "Remove gold hack, since it's in rustc automatically now"Lars Bergstrom2016-01-281-0/+6
| | | | This reverts commit 2955d895a4d723bc616f37a55a973c677318a950.
* Prepend PATH extras instead of append.Adam Casey2016-01-271-1/+1
| | | | Fixes multirust issue #9437
* Fix ./mach run on WindowsAdam Casey2016-01-241-5/+31
| | | | | 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
* adding check for windows then using Scripts instead of binJason Williams2016-01-221-17/+9
|
* win32: force PATH to be non-unicode on win32, if virtualenv munges itVladimir Vukicevic2016-01-201-0/+8
|
* win32: mach and build command fixesVladimir Vukicevic2016-01-201-3/+40
| | | | | | | - 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)
* Remove gold hack, since it's in rustc automatically nowLars Bergstrom2016-01-151-6/+0
|
* Rename rust-snapshot-hash to rust-nightly-dateSimon Sapin2015-12-301-9/+8
| | | | | | … and remove mentions of "snapshots". We now use rust-lang.org nightly builds rather than our own snapshots.
* Move OpenSSL Android build to the target directory #8568Maciej Skrzypkowski2015-12-021-0/+3
|
* Upgrade to rustc 1.6.0-nightly (d5fde83ae 2015-11-12)Manish Goregaokar2015-11-271-2/+5
| | | | … and libc 0.2 and many other dependencies
* Reduce duplication in binary path determinition for Android target (fixes ↵Yanir Seroussi2015-11-191-1/+4
| | | | issue #8349)
* Add CCACHE infra and turn it on in travisLars Bergstrom2015-11-051-0/+1
|
* New Android suppportLars Bergstrom2015-11-041-0/+3
|
* Fix a comparison that should be an assignment in host_triple().Ms2ger2015-09-231-2/+2
|
* Make the use of gold linker configurableAkos Kiss2015-09-081-2/+4
| | | | | | | | Currently, ld.gold is always used for linking if found on the system. There are some cases however when one may want to opt out from using it. This patch adds the boolean field `rustc-with-gold` to the `[tools]` section of `.servobuild`, which if set false, disables the use of ld.gold.
* Utilize Python context managers for opening/closing filesCorey Farwell2015-08-211-3/+6
| | | | In some of these cases, files were not being closed
* Only use a rustc wrapper script when ld.gold is available.Simon Sapin2015-08-171-1/+4
| | | | Fixes #7247.