Commit graph

203 commits

Author SHA1 Message Date
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
Jason Williams
13d98f153a adding check for windows then using Scripts instead of bin 2016-01-22 19:27:29 -06: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
Lars Bergstrom
2955d895a4 Remove gold hack, since it's in rustc automatically now 2016-01-15 07:18:00 -06: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
Maciej Skrzypkowski
62af4d36dd Move OpenSSL Android build to the target directory #8568 2015-12-02 09:34:58 +01:00
Manish Goregaokar
dc0e467945 Upgrade to rustc 1.6.0-nightly (d5fde83ae 2015-11-12)
… and libc 0.2 and many other dependencies
2015-11-27 00:15:29 -05:00
Yanir Seroussi
4b71bc5c42 Reduce duplication in binary path determinition for Android target (fixes issue #8349) 2015-11-19 14:35:10 +11:00
Lars Bergstrom
5c5acc0249 Add CCACHE infra and turn it on in travis 2015-11-05 14:47:23 -06:00
Lars Bergstrom
17a6cb5873 New Android suppport 2015-11-04 16:29:39 -06:00
Ms2ger
65e50be657 Fix a comparison that should be an assignment in host_triple(). 2015-09-23 09:40:08 +02:00
Akos Kiss
9afa930728 Make the use of gold linker configurable
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.
2015-09-08 17:10:46 +00:00
Corey Farwell
2ab43bea5d Utilize Python context managers for opening/closing files
In some of these cases, files were not being closed
2015-08-21 11:15:17 -04:00
Simon Sapin
1dab9294f4 Only use a rustc wrapper script when ld.gold is available.
Fixes #7247.
2015-08-17 09:20:07 +02:00
Simon Sapin
fb7a53c6cf Use the gold linker when available.
This shaves 50 seconds off the build time on my machine.
2015-08-15 18:09:18 +02:00
Matt Brubeck
63d39a464f Upgrade cocoa, openssl, and selectors 2015-07-30 14:19:08 -07:00
Michael Wu
675267b782 Upgrade to SM 39 2015-06-19 18:42:48 -04:00
Jack Moffitt
a0237085c6 Use Cargo's target directory sharing.
This speeds up `./mach build --dev` followed by `./mach build-cef` by a
large amount, and also speeds up other build combos found in our CI.
2015-06-15 11:48:47 -06:00
Corey Farwell
848c57653c Add flake8 to the tidy process for Python files
Fixes #6236

Also included in this commit are the changes need to make flake8 pass
for the existing python file
2015-06-04 11:17:34 -04:00
bors-servo
9aa1d93282 Auto merge of #6268 - frewsxcv:tidy-python, r=jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6268)
<!-- Reviewable:end -->
2015-06-03 08:04:11 -05:00
Corey Farwell
e3b71c65bf Fix tidy issues with Python files in python/ 2015-06-02 19:51:41 -04:00
Brian Anderson
68d977c5f0 Support a system root with correct on-disk directory layout
The existing code for setting up the environment assumes that
the directory layout containing rust and cargo conforms to the
one used by rust-installer's tarballs. This makes overriding
the system root awkward for simple cases where I want to test
my own build directly from the rust build directory. This
patch just adds a second path to PATH and LD_LIBRARY_PATH
to accomodate both disk layouts.

Conflicts:
	python/servo/command_base.py
2015-06-02 16:11:02 -07:00
bors-servo
713f18a58d Auto merge of #6201 - glennw:jquery-runner, r=metajack
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6201)
<!-- Reviewable:end -->
2015-05-31 21:20:57 -05:00
Glenn Watson
be7ae0c732 Add jQuery test runner and mach integration. 2015-06-01 09:36:24 +10:00
Corey Farwell
9708a386fc DRY submodule updating by utilizing existing update-submodules command
This might allow us to merge #5648
2015-05-31 17:25:26 -04:00
Jinank Jain
c98d55fe28 Add --dev option to mach build
Require either --dev or --release, unless a default build.mode is set
in .servobuild.  Fixes #5933.
2015-05-13 09:25:43 -07:00
Manish Goregaokar
88d180cc8a fix typo 2015-04-30 19:35:21 +05:30
bors-servo
82f70c5d50 auto merge of #5200 : mbrubeck/servo/cache-dir, r=larsbergstrom
This will be set in servo/saltfs to prevent our buildbot builders from re-downloading the build tools for every build.

r? @larsbergstrom or @metajack or @Manishearth
2015-03-19 13:57:52 -06:00
Ms2ger
5f15eb5fbf Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev. 2015-03-18 13:18:31 -04:00
Daniel Le
0aa727e5b6 Add HOST_FILE environment variable for test-wpt 2015-03-14 18:45:34 +08:00
Matt Brubeck
4641640d14 Add an environment variable to override cache-dir
This will be set in servo/saltfs to prevent our buildbot builders from
re-downloading the build tools for every build.
2015-03-11 15:07:28 -07:00
Manish Goregaokar
cfdad335bd Add support for $CARGO_HOME in servobuild 2015-03-08 01:34:38 +05:30
Simon Sapin
b613519a52 Make submodule sync silent (and recursive).
This eliminates the

    Synchronizing submodule url for 'support/android-rs-glue'
    Synchronizing submodule url for 'tests/wpt/web-platform-tests'

messages that appeared for every `mach build` command.
2015-03-04 13:43:51 +01:00
Prabhjyot Singh Sodhi
12e2f30617 changin os.exit to sys.exit
Fixes #5009
2015-02-22 02:06:07 +05:30
Manish Goregaokar
2711d00666 Remove dependency on backup-flame dir
We should be using the one in the product target dir instead.

This makes the B2G deps distributable again
2015-02-21 09:42:47 +05:30
Manish Goregaokar
5b3868089e Add ./mach build-gonk command 2015-02-21 09:42:47 +05:30
Prabhjyot Singh Sodhi
7911c0c145 Mach bootstrapping will sync modules
Fixes #4916
2015-02-19 01:39:27 +05:30
Matt Brubeck
53135b2566 Move snapshot dir inside the source dir by default
This avoids changing any directories outside the repo, which is better for
some automation scenarios.

The servobuild.example file has a "cache-dir" setting that restores the
previous default location of `~/.servo`, which is useful for developers
working with multiple clones on the same machine.
2015-01-28 10:33:04 -08:00
Glenn Watson
9d192de63d Switch android to glutin. 2014-12-12 08:13:04 +10:00
Glenn Watson
030dab553e Use mach to build openssl on android instead of glut makefile.
The glut makefile will be removed shortly after glutin lands
for android, so we need to build openssl for android elsewhere
in the build process.
2014-12-09 08:20:36 +10:00
Simon Sapin
cc4ea7507f Make build system more independent of current directory. 2014-12-02 18:04:06 -08:00
Matt Brubeck
3cacb029cc Use the correct Rust path in Android packaging 2014-11-14 13:01:46 -08:00
Fabrice Desré
8eb4844174 Issue #3804 : Allow enabling debug-mozjs from servobuild config 2014-11-06 22:47:02 -08:00
Matt Brubeck
2ee516fa7c Automatically update cargo when necessary 2014-11-05 14:07:02 -08:00
Anthony Miyaguchi
75b340a243 Fixes #3353: rust snapshot downloads to home directory 2014-11-05 11:14:21 -08:00
Matt Brubeck
b736256d53 Add Android build config to mach/servobuild 2014-10-03 14:29:54 -07:00
Simon Sapin
04d839328b Have the Rust snapshot directory include the Rust version and hash.
That way, whenever rust-snapshot-hash changes, mach will look for
the Rust snapshot in a different directory and re-boostrap as needed.

However, older rust version will be left behind never cleaned up.
This is good for git-bisect, but not for disk space:
the current snapshot is 618 MB.

In the future, we may want `mach clean` or some other comment
to remove unused Rust snapshots.

CC #3388
2014-09-29 17:41:45 +01:00