Skip to content

Commit 40a1285

Browse files
committed
Specify --features dynamic-instrumentation instead of --all-features for commands that run (cargo build, cargo test) as we don't want --features llvm-static in those cases.
1 parent cb99274 commit 40a1285

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

azure-pipelines.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
export CARGO_HOME=$AGENT_TEMPDIRECTORY/.cargo
7373
export RUSTFLAGS="-D warnings"
7474
export RUSTDOCFLAGS="-D warnings"
75-
cargo build --release
75+
cargo build --release --features dynamic-instrumentation
7676
displayName: 'cargo build against host clang/LLVM (fast build)'
7777
7878
- script: |
@@ -81,7 +81,7 @@ jobs:
8181
export CARGO_HOME=$AGENT_TEMPDIRECTORY/.cargo
8282
export RUSTFLAGS="-D warnings"
8383
export RUSTDOCFLAGS="-D warnings"
84-
cargo test --release
84+
cargo test --release --features dynamic-instrumentation
8585
displayName: 'cargo test'
8686
8787
- script: |
@@ -145,14 +145,14 @@ jobs:
145145
export LLVM_CONFIG_PATH=$(brew --prefix llvm)/bin/llvm-config
146146
export RUSTFLAGS="-D warnings"
147147
export RUSTDOCFLAGS="-D warnings"
148-
cargo build --release --all-features
148+
cargo build --release --features dynamic-instrumentation
149149
displayName: 'cargo build against host clang/LLVM (fast build)'
150150
151151
- script: |
152152
export LLVM_CONFIG_PATH=$(brew --prefix llvm)/bin/llvm-config
153153
export RUSTFLAGS="-D warnings"
154154
export RUSTDOCFLAGS="-D warnings"
155-
cargo test --release --all-features
155+
cargo test --release --features dynamic-instrumentation
156156
displayName: 'cargo test'
157157
158158
- script: python3 ./scripts/test_translator.py ./tests

scripts/check.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ export RUSTFLAGS="-D warnings"
66
export RUSTDOCFLAGS="-D warnings"
77

88
cargo fmt --check
9-
cargo build --all-features
9+
cargo check --all-features
10+
cargo build --features dynamic-instrumentation
1011
cargo doc --all-features --document-private-items
11-
cargo test --all-features
12+
cargo test --features dynamic-instrumentation
1213
cargo clippy --tests --all --all-features
1314
./scripts/test_translator.py tests/

0 commit comments

Comments
 (0)