From b17be29195d8f37867ed72466e9145c4db8e1040 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Mon, 16 Aug 2021 12:16:27 +0800 Subject: [PATCH] xous: make processes-as-threads a feature flag The test module uses this feature to avoid having to spawn external processes. Make this a feature flag since it doesn't make sense for any other target. Signed-off-by: Sean Cross --- xous-rs/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xous-rs/Cargo.toml b/xous-rs/Cargo.toml index 5f5f36918..c3a96febe 100644 --- a/xous-rs/Cargo.toml +++ b/xous-rs/Cargo.toml @@ -31,6 +31,10 @@ logging = ["log"] # This is being built as part of libstd rustc-dep-of-std = ['core', 'compiler_builtins/rustc-dep-of-std'] +# Processes and threads will all be subthreads. This is useful for kernel +# testing. +processes-as-threads = [] + default = ["bit-flags", "xous-macros"] [target.'cfg(any(windows,unix))'.dependencies]