mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
No need to install LLD on travis/appveyor anymore
Rust now ships a LLD binary.
This commit is contained in:
@@ -65,9 +65,7 @@ install:
|
|||||||
build: false
|
build: false
|
||||||
|
|
||||||
before_test:
|
before_test:
|
||||||
- mkdir bin
|
- set PATH=C:\msys64\mingw%MSYS_BITS%\bin;C:\msys64\usr\bin;%PATH%
|
||||||
- mklink "bin\ld.exe" "C:\Program Files\LLVM\bin\lld.exe"
|
|
||||||
- set PATH=%CD%\bin;C:\msys64\mingw%MSYS_BITS%\bin;C:\msys64\usr\bin;%PATH%
|
|
||||||
- rustup component add rust-src
|
- rustup component add rust-src
|
||||||
- set RUST_BACKTRACE=1
|
- set RUST_BACKTRACE=1
|
||||||
- if not exist %USERPROFILE%\.cargo\bin\cargo-install-update.exe cargo install cargo-update
|
- if not exist %USERPROFILE%\.cargo\bin\cargo-install-update.exe cargo install cargo-update
|
||||||
|
|||||||
17
.travis.yml
17
.travis.yml
@@ -19,29 +19,12 @@ os:
|
|||||||
- linux
|
- linux
|
||||||
- osx
|
- osx
|
||||||
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- llvm-toolchain-trusty-5.0
|
|
||||||
packages:
|
|
||||||
- lld-5.0
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.cargo
|
- $HOME/.cargo
|
||||||
- $HOME/.xargo
|
- $HOME/.xargo
|
||||||
- $TRAVIS_BUILD_DIR/target
|
- $TRAVIS_BUILD_DIR/target
|
||||||
|
|
||||||
before_install:
|
|
||||||
- |
|
|
||||||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
||||||
set -e
|
|
||||||
LLVM_URL="https://releases.llvm.org/5.0.1/clang+llvm-5.0.1-x86_64-apple-darwin.tar.xz"
|
|
||||||
travis_retry wget -O llvm.tar.xz -nv ${LLVM_URL}
|
|
||||||
tar -xJ -f llvm.tar.xz
|
|
||||||
export PATH="`pwd`/clang+llvm-5.0.1-final-x86_64-apple-darwin/bin:$PATH"
|
|
||||||
fi
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- rustup component add rust-src
|
- rustup component add rust-src
|
||||||
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
|
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
|
||||||
|
|||||||
Reference in New Issue
Block a user