From 0cdec86900cc1128c7a6e76ec226b45cb0c10389 Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Tue, 10 Sep 2024 17:21:19 +0200 Subject: [PATCH] cli: fix build error due to lack of CLI build testing --- src/bin/topola/main.rs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/bin/topola/main.rs b/src/bin/topola/main.rs index 64f5382..ddf674a 100644 --- a/src/bin/topola/main.rs +++ b/src/bin/topola/main.rs @@ -6,6 +6,8 @@ use topola::autorouter::invoker::Command; use topola::autorouter::invoker::Invoker; use topola::autorouter::selection::PinSelection; use topola::autorouter::Autorouter; +use topola::autorouter::AutorouterOptions; +use topola::router::RouterOptions; use topola::specctra::design::SpecctraDesign; pub mod cli; @@ -25,9 +27,16 @@ fn main() -> Result<(), std::io::Error> { serde_json::from_reader(commands_bufread)? } else { let mut history = History::new(); - history.do_(Command::Autoroute(PinSelection::new_select_layer( - &board, 0, - ))); + history.do_(Command::Autoroute( + PinSelection::new_select_layer(&board, 0), + AutorouterOptions { + presort_by_pairwise_detours: false, + router_options: RouterOptions { + wrap_around_bands: true, + squeeze_under_bands: false, + }, + }, + )); history };