mirror of
https://github.com/esp-rs/espup.git
synced 2025-10-02 15:14:56 +00:00
Warning cleanup
This commit is contained in:
parent
582df61e2c
commit
889c4b839c
@ -123,7 +123,7 @@ fn install(args: InstallOpts) -> Result<()> {
|
|||||||
let llvm_version = parse_llvm_version(&args.llvm_version).unwrap();
|
let llvm_version = parse_llvm_version(&args.llvm_version).unwrap();
|
||||||
println!("llvm_version: {:?}", llvm_version);
|
println!("llvm_version: {:?}", llvm_version);
|
||||||
|
|
||||||
let llvm_release = args.llvm_version.clone();
|
// let llvm_release = args.llvm_version.clone();
|
||||||
let artifact_file_extension = get_artifact_file_extension(arch).to_string();
|
let artifact_file_extension = get_artifact_file_extension(arch).to_string();
|
||||||
let llvm_arch = get_llvm_arch(arch).to_string();
|
let llvm_arch = get_llvm_arch(arch).to_string();
|
||||||
let llvm_file = format!(
|
let llvm_file = format!(
|
||||||
|
@ -280,7 +280,7 @@ pub fn install_espidf(targets: &str, version: String) -> Result<(), String> {
|
|||||||
|
|
||||||
println!("Installing CMake");
|
println!("Installing CMake");
|
||||||
let mut arguments: Vec<String> = [].to_vec();
|
let mut arguments: Vec<String> = [].to_vec();
|
||||||
let mut idf_tools_scritp_path = format!("{}/tools/idf_tools.py", espidf_path);
|
let idf_tools_scritp_path = format!("{}/tools/idf_tools.py", espidf_path);
|
||||||
arguments.push(idf_tools_scritp_path);
|
arguments.push(idf_tools_scritp_path);
|
||||||
arguments.push("install".to_string());
|
arguments.push("install".to_string());
|
||||||
arguments.push("cmake".to_string());
|
arguments.push("cmake".to_string());
|
||||||
|
@ -25,7 +25,7 @@ pub fn parse_targets(build_target: &str) -> Result<Vec<Chip>, String> {
|
|||||||
chips.push(Chip::Esp32c3);
|
chips.push(Chip::Esp32c3);
|
||||||
return Ok(chips);
|
return Ok(chips);
|
||||||
}
|
}
|
||||||
let mut targets: Vec<&str>;
|
let targets: Vec<&str>;
|
||||||
if build_target.contains(' ') || build_target.contains(',') {
|
if build_target.contains(' ') || build_target.contains(',') {
|
||||||
targets = build_target.split([',', ' ']).collect();
|
targets = build_target.split([',', ' ']).collect();
|
||||||
} else {
|
} else {
|
||||||
@ -199,7 +199,7 @@ pub fn run_command(shell: String, arguments: Vec<String>, command: String) -> st
|
|||||||
}
|
}
|
||||||
|
|
||||||
//println!("arguments = {:?}", arguments);
|
//println!("arguments = {:?}", arguments);
|
||||||
let mut child_process = std::process::Command::new(shell)
|
std::process::Command::new(shell)
|
||||||
.args(arguments)
|
.args(arguments)
|
||||||
.stdin(Stdio::piped())
|
.stdin(Stdio::piped())
|
||||||
.stdout(Stdio::piped())
|
.stdout(Stdio::piped())
|
||||||
@ -208,8 +208,8 @@ pub fn run_command(shell: String, arguments: Vec<String>, command: String) -> st
|
|||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
let output = child_process.wait_with_output()?;
|
// let output = child_process.wait_with_output()?;
|
||||||
//println!("output = {:?}", output);
|
// println!("output = {:?}", output);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user