From 25cd4f2c8f441731c2a26474d0e873dc931689b3 Mon Sep 17 00:00:00 2001 From: Sergio Gasquez Date: Fri, 23 Dec 2022 10:24:28 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Only=20install=20`riscv32?= =?UTF-8?q?-esp-elf`=20once?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index e0af203..6909be7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -211,7 +211,14 @@ async fn install(args: InstallOpts) -> Result<()> { }; } else { for target in &targets { - let gcc = Gcc::new(target, &host_triple); + if target == &Target::ESP32 || target == &Target::ESP32S2 || target == &Target::ESP32S3 + { + let gcc = Gcc::new(target, &host_triple); + to_install.push(Box::new(gcc)); + } + } + if targets.contains(&Target::ESP32C3) || targets.contains(&Target::ESP32C2) { + let gcc = Gcc::new(&Target::ESP32C2, &host_triple); to_install.push(Box::new(gcc)); } }