aboutsummaryrefslogtreecommitdiff
path: root/xtask/tests
diff options
context:
space:
mode:
authorGravatar Dario Nieuwenhuis <dirbaio@dirbaio.net> 2022-08-11 01:49:33 +0200
committerGravatar Dario Nieuwenhuis <dirbaio@dirbaio.net> 2022-08-11 23:31:08 +0200
commit3a15a6b4b320fa328e8ab99c31f81536960dd280 (patch)
tree4c3ef55e91988845873479460e438afea445c919 /xtask/tests
parent4e908625204a1e95dd3fd5bdcd8d66d6bc11c3bc (diff)
downloadcortex-m-3a15a6b4b320fa328e8ab99c31f81536960dd280.tar.gz
cortex-m-3a15a6b4b320fa328e8ab99c31f81536960dd280.tar.zst
cortex-m-3a15a6b4b320fa328e8ab99c31f81536960dd280.zip
Add implementation for critical-section 1.0
Co-Authored-By: Markus Reiter <me@reitermark.us>
Diffstat (limited to 'xtask/tests')
-rw-r--r--xtask/tests/ci.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/xtask/tests/ci.rs b/xtask/tests/ci.rs
index 603491c..1dc4754 100644
--- a/xtask/tests/ci.rs
+++ b/xtask/tests/ci.rs
@@ -32,6 +32,13 @@ fn build(package: &str, target: &str, features: &[&str]) {
cargo.args(&["--features", *feat]);
}
+ // A `critical_section` implementation is always needed.
+ if package == "cortex-m" {
+ cargo.args(&["--features", "critical-section-single-core"]);
+ } else {
+ cargo.args(&["--features", "cortex-m/critical-section-single-core"]);
+ }
+
// Cargo features don't work right when invoked from the workspace root, so change to the
// package's directory when necessary.
if package != "cortex-m" {