about summary refs log tree commit diff
path: root/src/bootstrap/bootstrap.py
AgeCommit message (Collapse)AuthorLines
2017-06-30bootstrap: Fix some PEP8 issuesMilton Mazzarri-19/+34
This commit also adds a few missing docstrings
2017-06-21Pass path to python from bootstrap.py to bootstrap.rsStepan Koltsov-0/+1
When bootstrap is executed with python not in `$PATH`, (e. g. `c:\Python27\python.exe x.py test`) bootstrap cannot find python and crashes. This commit passes path to python in `BOOTSTRAP_PYTHON` env var.
2017-06-19Bump version and stage0 compilerAlex Crichton-0/+1
2017-05-25bootstrap.py: support verbose for submodulesTatsuyuki Ishi-3/+3
2017-05-25bootstrap.py: decode to strTatsuyuki Ishi-11/+10
Also, improve the split mechanism to address space in paths.
2017-05-25bootstrap.py: Filter instead of iterationTatsuyuki Ishi-9/+8
2017-05-25Format bootstrap.py using autopep8Tatsuyuki Ishi-35/+59
2017-05-25Use the improved submodule handlingTatsuyuki Ishi-48/+18
2017-05-24bootstrap: Use common run() function to call cargoDennis Schridde-18/+12
This brings verbosity even to invocation of cargo itself
2017-05-24bootstrap: Make bootstrap verbose if requestedDennis Schridde-0/+4
Fixes: #42099
2017-05-24bootstrap: Actually respect verbosity setting in config.tomlDennis Schridde-0/+5
2017-05-18Fix x.pySimonas Kazlauskas-3/+4
2017-05-17Reset submodule management to what master doesAlex Crichton-19/+50
Basically just translate what's done on master in Rust to Python here.
2017-05-18Move submodule initialization to bootstrap.pyTatsuyuki Ishi-3/+36
2017-04-30Rename os variable in bootstrap.py to avoid shadowing os module.Titus Barik-2/+2
2017-04-29Update stage0 bootstrap compilerAlex Crichton-17/+27
We've got a freshly minted beta compiler, let's update to use that on nightly! This has a few other changes associated with it as well * A bump to the rustc version number (to 1.19.0) * Movement of the `cargo` and `rls` submodules to their "proper" location in `src/tools/{cargo,rls}`. Now that Cargo workspaces support the `exclude` option this can work. * Updates of the `cargo` and `rls` submodules to their master branches. * Tweak to the `src/stage0.txt` format to be more amenable for Cargo version numbers. On the beta channel Cargo will bootstrap from a different version than rustc (e.g. the version numbers are different), so we need different configuration for this. * Addition of `dev` as a readable key in the `src/stage0.txt` format. If present then stage0 compilers are downloaded from `dev-static.rust-lang.org` instead of `static.rust-lang.org`. This is added to accomodate our updated release process with Travis and AppVeyor.
2017-04-26Rollup merge of #41456 - jessicah:haiku-support, r=alexcrichtonAriel Ben-Yehuda-0/+3
Haiku: fix initial platform support
2017-04-26Rollup merge of #41370 - malbarbo:android-bootstrap, r=alexcrichtonAriel Ben-Yehuda-6/+16
Add bootstrap support for android
2017-04-24Haiku: add missing cases of using LIBRARY_PATHJessica Hamilton-0/+3
2017-04-18Add bootstrap support for androidMarco A L Barbosa-6/+16
2017-04-17bootstrap: Don't workaround uname -m on DarwinRicho Healey-8/+0
This no longer manifests on any versions of OSX that I could find.
2017-04-08Rollup merge of #41152 - cuviper:bootstrap-armv7, r=japaricTim Neumann-2/+2
bootstrap.py: fix armv7 detection This matches the logic that was in `./configure` before f8ca805422db8.
2017-04-07bootstrap.py: fix armv7 detectionJosh Stone-2/+2
This matches the logic that was in `./configure` before f8ca805422db8.
2017-04-06Auto merge of #41102 - frewsxcv:rollup, r=frewsxcvbors-2/+5
Rollup of 5 pull requests - Successful merges: #40908, #41011, #41026, #41037, #41050 - Failed merges:
2017-04-02Finish the improvements I planned.Nathan Stocks-2/+3
- No more manual args manipulation -- getopts used for everything. As a result, options can be in any position, now, even before the subcommand. - The additional options for test, bench, and dist now appear in the help output. - No more single-letter variable bindings used internally for large scopes. - Don't output the time measurement when just invoking 'x.py' - Logic is now much more linear. We build strings up, and then print them.
2017-03-30Don't print build statistics if we explicitly asked for the help message.Nathan Stocks-2/+4
2017-03-30Fix stage0->stage1 build when using "pthreads" mingw compiler.Vadim Chugunov-1/+10
2017-03-29rustbuild: Update bootstrap compilerAlex Crichton-12/+5
Now that we've also updated cargo's release process this commit also changes the download location of Cargo from Cargos archives back to the static.r-l.o archives. This should ensure that the Cargo download is the exact Cargo paired with the rustc that we release.
2017-03-11configure: Remove --build detectionAlex Crichton-4/+19
This commit removes detection of CFG_OSTYPE and CFG_CPUTYPE from the configure script, which means that the default value of `--build` is no longer present in the configure script. All this logic is now available in rustbuild itself, so there's no need to duplicate it.
2017-03-10Support armhf abi on 64-bit ARM cpusXimin Luo-1/+1
They report their `uname -m` as armv8l rather than aarch64. Patch originally by Matthias Klose <doko@debian.org>
2017-03-04bootstrap.py: Report build statusVadim Petrochenkov-6/+15
Move some code from x.py to bootstrap.py
2017-02-25Rollup merge of #39950 - ishitatsuyuki:stop-trashing-ldpath, r=alexcrichtonEduard-Mihai Burtescu-2/+6
bootstrap: stop trashing (DY)LD_LIBRARY_PATH This generated an ugly error with fakeroot before.
2017-02-25Rollup merge of #39903 - binarycrusader:issue-39901, r=alexcrichtonEduard-Mihai Burtescu-0/+2
add solaris sparcv9 support Fixes #39901
2017-02-23rustbuild: Retry downloads by defaultAlex Crichton-4/+17
Don't rely on curl's --retry, it appears to not work for some errors like SSL errors.
2017-02-20bootstrap: stop trashing (DY)LD_LIBRARY_PATHTatsuyuki Ishi-2/+6
This generated an ugly error with fakeroot before.
2017-02-17Auto merge of #39578 - canndrew:nixos-bootstrap-fix, r=alexcrichtonbors-0/+56
Fix for bootstrapping on NixOS NixOS puts Linux's dynamic loader in wierd place. Detect when we're on NixOS and patch the downloaded bootstrap executables appropriately.
2017-02-17Style fixupsAndrew Cann-5/+6
2017-02-16add solaris sparcv9 supportShawn Walker-Salas-0/+2
* Update bootstrap to recognize the cputype 'sparcv9' (used on Solaris) * Change to never use -fomit-frame-pointer on Solaris or for sparc * Adds rust target sparcv9-sun-solaris Fixes #39901
2017-02-14Auto merge of #39728 - eddyb:vendeur-tres-bien, r=alexcrichtonbors-0/+5
Automate vendoring by invoking cargo-vendor when building src dist tarballs. This avoids #39633 bringing the `src/vendor` checked into git by #37524, past 200,000 lines of code. I believe the strategy of having rustbuild run `cargo vendor` during the `dist src` step is sound. However, the only way to be sure `cargo-vendor` exists is to run `cargo install --force cargo-vendor`, which will recompile it every time (not passing `--force` means you can't tell between "already exists" and "build error"). ~~This is quite suboptimal and I'd like to somehow do it in each `Dockerfile` that would need it.~~ * [ ] Cache `CARGO_HOME` (i.e. `~/.cargo`) between CI runs * `bin/cargo-vendor` and the actual caches are the relevant bits * [x] Do not build `cargo-vendor` all the time * ~~Maybe detect `~/.cargo/bin/cargo-vendor` already exists?~~ * ~~Could also try to build it in a `Dockerfile` but do we have `cargo`/`rustc` there?~~ * Final solution: check `cargo install --list` for a line starting with `cargo-vendor ` cc @rust-lang/tools
2017-02-14Automatically vendor Cargo deps when building the source tarballs.Eduard-Mihai Burtescu-0/+5
2017-02-12fix portability issue in error handling of build_tripleShawn Walker-Salas-1/+1
2017-02-11fix exception handling for isainfo execution failureShawn Walker-Salas-1/+1
remove unnecessary gcc_s addition in libstd for Solaris
2017-02-11fix copy pastaShawn Walker-Salas-1/+1
Don't need to catch WindowsError. That was very silly of me.
2017-02-11Add Solaris as recognized ostypeShawn Walker-Salas-0/+15
Add cputype recognition for Solaris Fixes #39729
2017-02-11Change test for being on nixos againAndrew Cann-1/+1
2017-02-11Change test for being on NixOSAndrew Cann-1/+1
2017-02-06Fix for bootstrapping on NixOSAndrew Cann-1/+56
NixOS puts Linux's dynamic loader in wierd place. Detect when we're on NixOS and patch the downloaded bootstrap executables appropriately.
2017-02-05Rollup merge of #39491 - dumbbell:support-aarch64-unknown-freebsd, ↵Corey Farwell-0/+2
r=alexcrichton Support aarch64-unknown-freebsd
2017-02-03`aarch64` CPU type is called `arm64` on FreeBSDJean-Sébastien Pédron-0/+2
2017-02-02Fix typo in bootstrap.py info messageDirkjan Ochtman-1/+1