summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2022-01-21 11:46:23 +0100
committerGravatar GitHub <noreply@github.com> 2022-01-21 11:46:23 +0100
commit4a204da35d2847c1dcaaea1b6a0127de7612b5af (patch)
treef87fedb4b642467fb78a6c62a000c8eba4141b86
parent70cecc414749bcc06fc477bda3cbf83ada667c8e (diff)
parent5cf74504da42bb06497a7466e8c554c725361504 (diff)
downloadheapless-4a204da35d2847c1dcaaea1b6a0127de7612b5af.tar.gz
heapless-4a204da35d2847c1dcaaea1b6a0127de7612b5af.tar.zst
heapless-4a204da35d2847c1dcaaea1b6a0127de7612b5af.zip
Merge pull request #267 from TDHolmes/allow-non-x86-hosts
assume native compilation if target_os is not "none" to allow non-x86 hosts to run tests
Diffstat (limited to '')
-rw-r--r--CHANGELOG.md4
-rw-r--r--Cargo.toml2
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cb0939e7..d8cd5252 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
+### Fixed
+
+- `cargo test` can now run on non-`x86` hosts
+
### Added
- Added `OldestOrdered` iterator for `HistoryBuffer`
diff --git a/Cargo.toml b/Cargo.toml
index 626365ee..4c8e90ec 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -27,7 +27,7 @@ mpmc_large = []
# This flag has no version guarantee, the `defmt` dependency can be updated in a patch release
defmt-impl = ["defmt"]
-[target.'cfg(any(target_arch = "x86_64", target_arch = "x86"))'.dev-dependencies]
+[target.'cfg(not(target_os = "none"))'.dev-dependencies]
scoped_threadpool = "0.1.8"
[target.thumbv6m-none-eabi.dependencies]