Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustbuild: Quickly dist cross-host compilers #38731

Merged
merged 1 commit into from
Jan 5, 2017

Commits on Jan 4, 2017

  1. rustbuild: Quickly dist cross-host compilers

    This commit optimizes the compile time for creating tarballs of cross-host
    compilers and as a proof of concept adds two to the standard Travis matrix. Much
    of this commit is further refactoring and refining of the `step.rs` definitions
    along with the interpretation of `--target` and `--host` flags. This has gotten
    confusing enough that I've also added a small test suite to
    `src/bootstrap/step.rs` to ensure what we're doing works and doesn't regress.
    
    After this commit when you execute:
    
        ./x.py dist --host $MY_HOST --target $MY_HOST
    
    the build system will compile two compilers. The first is for the build platform
    and the second is for the host platform. This second compiler is then packaged
    up and placed into `build/dist` and is ready to go. With a fully cached LLVM and
    docker image I was able to create a cross-host compiler in around 20 minutes
    locally.
    
    Eventually we plan to add a whole litany of cross-host entries to the Travis
    matrix, but for now we're just adding a few before we eat up all the extra
    capacity.
    
    cc rust-lang#38531
    alexcrichton committed Jan 4, 2017
    Configuration menu
    Copy the full SHA
    1a040b3 View commit details
    Browse the repository at this point in the history