File tree 4 files changed +16
-4
lines changed
4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 1
1
# ` libm `
2
2
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
+
3
5
A port of [ MUSL] 's libm to Rust.
4
6
5
7
[ MUSL ] : https://www.musl-libc.org/
Original file line number Diff line number Diff line change 8
8
steps :
9
9
- template : ci/azure-install-rust.yml
10
10
- 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"
11
14
- bash : cargo generate-lockfile && ./ci/run-docker.sh $TARGET
15
+ displayName : " run tests"
12
16
strategy :
13
17
matrix :
14
18
aarch64 :
@@ -47,18 +51,23 @@ jobs:
47
51
displayName : " Build for wasm"
48
52
- script : cargo build --target wasm32-unknown-unknown --no-default-features
49
53
displayName : " Build for wasm (no default features)"
54
+ variables :
55
+ TOOLCHAIN : nightly
50
56
51
57
- job : rustfmt
52
58
pool :
53
59
vmImage : ubuntu-16.04
54
60
steps :
55
61
- template : ci/azure-install-rust.yml
56
62
- bash : rustup component add rustfmt
63
+ displayName : " install rustfmt"
57
64
- bash : cargo fmt --all -- --check
65
+ displayName : " check formatting"
58
66
59
67
- job : compiler_builtins_works
60
68
pool :
61
69
vmImage : ubuntu-16.04
62
70
steps :
63
71
- template : ci/azure-install-rust.yml
64
72
- 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() {
22
22
-v ` pwd` /target:/target \
23
23
-v ` pwd` :/checkout:ro \
24
24
-v ` rustc --print sysroot` :/rust:ro \
25
+ --init \
25
26
-w /checkout \
26
27
$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 "
28
29
}
29
30
30
31
if [ -z " $1 " ]; then
Original file line number Diff line number Diff line change 3
3
set -ex
4
4
TARGET=$1
5
5
6
- cargo build --target $TARGET
7
6
cargo test --target $TARGET
8
- cargo build --target $TARGET --release
9
7
cargo test --target $TARGET --release
10
8
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
+
12
12
cargo test --features ' checked musl-reference-tests' --target $TARGET --release
You can’t perform that action at this time.
0 commit comments