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

Allow using download-ci-llvm from directories other than the root #79156

Merged
merged 1 commit into from
Nov 19, 2020

Commits on Nov 18, 2020

  1. Allow using download-ci-llvm from directories other than the root

    Previously, bootstrap.py would attempt to find the LLVM commit from
    `src/llvm-project`. However, it assumed it was always being run from the
    top-level directory, which isn't always the case.
    
    Before:
    
    ```
    downloading https://ci-artifacts.rust-lang.org/rustc-builds//rust-dev-nightly-x86_64-unknown-linux-gnu.tar.gz
    
    curl: (22) The requested URL returned error: 404
    failed to run: curl -# -y 30 -Y 10 --connect-timeout 30 --retry 3 -Sf -o /tmp/tmppyh4w8 https://ci-artifacts.rust-lang.org/rustc-builds//rust-dev-nightly-x86_64-unknown-linux-gnu.tar.gz
    Build completed unsuccessfully in 0:00:02
    ```
    
    After:
    
    ```
    downloading https://ci-artifacts.rust-lang.org/rustc-builds/430feb24a46993e5073c1bb1b39da190d83fa2bf/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.gz
     ###################################################################################################################################################################### 100.0%
    extracting /home/joshua/rustc/src/bootstrap/build/cache/llvm-430feb24a46993e5073c1bb1b39da190d83fa2bf-False/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.gz
    ```
    jyn514 committed Nov 18, 2020
    Configuration menu
    Copy the full SHA
    5163912 View commit details
    Browse the repository at this point in the history