about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorSimonas Kazlauskas <git@kazlauskas.me>2017-02-16 20:52:56 +0200
committerSimonas Kazlauskas <git@kazlauskas.me>2017-02-16 21:12:38 +0200
commit0e45a5ed3f79338656b19a41172d3a7761586ebc (patch)
tree14998e1cdb71b36c21fbbdf57b648d19569e2b2e /src/test/incremental/thinlto
parent62eb6056d332be09206dc664f2e949ae64341e64 (diff)
downloadrust-0e45a5ed3f79338656b19a41172d3a7761586ebc.tar.gz
rust-0e45a5ed3f79338656b19a41172d3a7761586ebc.zip
[rustbuild] add a way to run command after failure
This is a simple way to workaround the debugging issues caused by the rustc
wrapper used in the bootstrap process. Namely, it uses some obscure environment
variables and you can’t just copy the failed command and run it in the shell or
debugger to examine the failure more closely.

With `--on-fail` its possible to run an arbitrary command within exactly the
same environment under which rustc failed. Theres’s multiple ways to use this
new flag:

$ python x.py build --stage=1 --on-fail=env

    would print a list of environment variables and the failed command, so a
    few copy-pastes and you now can run the same rust in your shell outside the
    bootstrap system.

$ python x.py build --stage=1 --on-fail=bash

    Is a more useful variation of the command above in that it launches a whole
    shell with environment already in place! All that’s left to do is copy-paste
    the command just above the shell prompt!

Fixes #38686
Fixes #38221
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions