xous: arch: look for feature flag for tests

When running tests, `processes-as-threads` gets enabled. Look for this
feature flag to determine if we need to use that architecture.

Note that this change requires `resolver v2` to be enabled.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2021-08-16 12:19:53 +08:00
parent 5efe76f490
commit 23ce9e5bf0

View file

@ -1,14 +1,14 @@
#[cfg(any(target_os = "none", target_os = "xous"))]
pub mod native;
pub mod riscv;
#[cfg(any(target_os = "none", target_os = "xous"))]
pub use native::*;
pub use riscv::*;
#[cfg(all(any(windows,unix), not(test)))]
#[cfg(all(any(windows,unix), not(feature = "processes-as-threads")))]
pub mod hosted;
#[cfg(all(any(windows,unix), not(test)))]
#[cfg(all(any(windows,unix), not(feature = "processes-as-threads")))]
pub use hosted::*;
#[cfg(all(any(windows,unix), test))]
#[cfg(feature = "processes-as-threads")]
pub mod test;
#[cfg(all(any(windows,unix), test))]
pub use test::*;
#[cfg(feature = "processes-as-threads")]
pub use test::*;