This repository was archived by the owner on Apr 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +16
-4
lines changed
Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 11# ` libm `
22
3+ [ ![ Build Status] ( https://dev.azure.com/rust-lang/libm/_apis/build/status/rust-lang-nursery.libm?branchName=master )] ( https://dev.azure.com/rust-lang/libm/_build/latest?definitionId=7&branchName=master )
4+
35A port of [ MUSL] 's libm to Rust.
46
57[ MUSL ] : https://www.musl-libc.org/
Original file line number Diff line number Diff line change 88 steps :
99 - template : ci/azure-install-rust.yml
1010 - bash : rustup target add $TARGET
11+ displayName : " add cross target"
12+ - bash : rustup target add x86_64-unknown-linux-musl
13+ displayName : " add musl target"
1114 - bash : cargo generate-lockfile && ./ci/run-docker.sh $TARGET
15+ displayName : " run tests"
1216 strategy :
1317 matrix :
1418 aarch64 :
@@ -47,18 +51,23 @@ jobs:
4751 displayName : " Build for wasm"
4852 - script : cargo build --target wasm32-unknown-unknown --no-default-features
4953 displayName : " Build for wasm (no default features)"
54+ variables :
55+ TOOLCHAIN : nightly
5056
5157 - job : rustfmt
5258 pool :
5359 vmImage : ubuntu-16.04
5460 steps :
5561 - template : ci/azure-install-rust.yml
5662 - bash : rustup component add rustfmt
63+ displayName : " install rustfmt"
5764 - bash : cargo fmt --all -- --check
65+ displayName : " check formatting"
5866
5967 - job : compiler_builtins_works
6068 pool :
6169 vmImage : ubuntu-16.04
6270 steps :
6371 - template : ci/azure-install-rust.yml
6472 - bash : cargo build -p cb
73+ displayName : " Check compiler-builtins still probably builds"
Original file line number Diff line number Diff line change @@ -22,9 +22,10 @@ run() {
2222 -v ` pwd` /target:/target \
2323 -v ` pwd` :/checkout:ro \
2424 -v ` rustc --print sysroot` :/rust:ro \
25+ --init \
2526 -w /checkout \
2627 $target \
27- sh -c " HOME=/tmp PATH=\$ PATH:/rust/bin ci/run.sh $target "
28+ sh -c " HOME=/tmp PATH=\$ PATH:/rust/bin exec ci/run.sh $target "
2829}
2930
3031if [ -z " $1 " ]; then
Original file line number Diff line number Diff line change 33set -ex
44TARGET=$1
55
6- cargo build --target $TARGET
76cargo test --target $TARGET
8- cargo build --target $TARGET --release
97cargo test --target $TARGET --release
108
11- cargo test --features ' checked musl-reference-tests' --target $TARGET
9+ # FIXME(#4) overflow checks in non-release currently cause issues
10+ # cargo test --features 'checked musl-reference-tests' --target $TARGET
11+
1212cargo test --features ' checked musl-reference-tests' --target $TARGET --release
You can’t perform that action at this time.
0 commit comments