mirror of
https://github.com/esp-rs/espup.git
synced 2025-10-02 15:14:56 +00:00
fix: ⚡️ Avoid unnecesary clone
This commit is contained in:
parent
1213efb895
commit
9e155df5c1
@ -76,7 +76,7 @@ impl EspIdfRepo {
|
|||||||
|
|
||||||
let mut tools = vec![];
|
let mut tools = vec![];
|
||||||
let mut subtools = Vec::new();
|
let mut subtools = Vec::new();
|
||||||
for target in self.targets.clone() {
|
for target in self.targets {
|
||||||
let gcc_toolchain_name = get_toolchain_name(target);
|
let gcc_toolchain_name = get_toolchain_name(target);
|
||||||
subtools.push(gcc_toolchain_name);
|
subtools.push(gcc_toolchain_name);
|
||||||
|
|
||||||
@ -136,6 +136,7 @@ impl EspIdfRepo {
|
|||||||
exports.push(format!("export IDF_PATH={}", espidf_dir.display()));
|
exports.push(format!("export IDF_PATH={}", espidf_dir.display()));
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
exports.push(format!("$Env:PATH={:?}", espidf.exported_path));
|
exports.push(format!("$Env:PATH={:?}", espidf.exported_path));
|
||||||
|
println!("PATTH: {:?}", espidf.exported_path);
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
exports.push(format!("export PATH={:?}", espidf.exported_path));
|
exports.push(format!("export PATH={:?}", espidf.exported_path));
|
||||||
if self.minified {
|
if self.minified {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user