From d736d54cee8fc2020d5de8b74da1154ffb885517 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 29 Mar 2022 16:49:18 +0800 Subject: [PATCH] make `pddbtest` not part of the hw build but part of hosted mode by default --- services/shellchat/Cargo.toml | 2 +- services/shellchat/src/cmds/pddb_cmd.rs | 1 + xtask/src/main.rs | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/services/shellchat/Cargo.toml b/services/shellchat/Cargo.toml index dd32ec230..5ddd91e5d 100644 --- a/services/shellchat/Cargo.toml +++ b/services/shellchat/Cargo.toml @@ -84,7 +84,7 @@ spinortest = [] # for spinor testing. contra-indicated with PDDB, as it steals m benchmarks = [] # adds the benchmark routines. Left off normally to free up code and memory space. tts = [] # adds text to speech plugin pddbtest = [] -default = ["pddbtest"] # "debugprint" +default = [] # "debugprint" [target.'cfg(any(windows,unix))'.dependencies] debug-here = "*" diff --git a/services/shellchat/src/cmds/pddb_cmd.rs b/services/shellchat/src/cmds/pddb_cmd.rs index 47d88a52d..918037dbe 100644 --- a/services/shellchat/src/cmds/pddb_cmd.rs +++ b/services/shellchat/src/cmds/pddb_cmd.rs @@ -1,5 +1,6 @@ use crate::{ShellCmdApi, CommonEnv}; use xous_ipc::String; +#[allow(unused_imports)] use std::io::{Write, Read, Seek, SeekFrom}; pub struct PddbCmd { diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 7db3f7bcd..cdd45f8f5 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -384,7 +384,8 @@ fn main() -> Result<(), Box> { pkgs.push(app); } generate_app_menus(&apps); - run(false, &pkgs, None, false)? + // for hosted runs, compile in the pddb test routines by default...for now. + run(false, &pkgs, Some(&["--features", "pddbtest"]), false)? } Some("hosted-ci") => { let mut pkgs = hw_pkgs.to_vec();