style: 🎨 Format Windows export file (#135)

This commit is contained in:
Sergio Gasquez Arcos 2023-01-11 12:22:54 +01:00 committed by GitHub
parent a040fac76a
commit 73aa09f83c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -184,7 +184,7 @@ impl Installable for EspIdfRepo {
install(espidf_origin).map_err(|_| Error::FailedToInstallEspIdf)?;
let espidf_dir = get_install_path(repo);
#[cfg(windows)]
exports.push(format!("$Env:IDF_PATH=\"{}\"", espidf_dir.display()));
exports.push(format!("$Env:IDF_PATH = \"{}\"", espidf_dir.display()));
#[cfg(unix)]
exports.push(format!("export IDF_PATH={}", espidf_dir.display()));
#[cfg(windows)]
@ -200,7 +200,7 @@ impl Installable for EspIdfRepo {
}
#[cfg(windows)]
exports.push(format!("$Env:IDF_TOOLS_PATH=\"{}\"", get_tools_path()));
exports.push(format!("$Env:IDF_TOOLS_PATH = \"{}\"", get_tools_path()));
#[cfg(unix)]
exports.push(format!("export IDF_TOOLS_PATH=\"{}\"", get_tools_path()));

View File

@ -115,11 +115,11 @@ impl Installable for Llvm {
// Set environment variables.
#[cfg(windows)]
exports.push(format!(
"$Env:LIBCLANG_PATH=\"{}/libclang.dll\"",
"$Env:LIBCLANG_PATH = \"{}/libclang.dll\"",
self.get_lib_path()
));
#[cfg(windows)]
exports.push(format!("$Env:PATH+=\";{}\"", self.get_lib_path()));
exports.push(format!("$Env:PATH += \";{}\"", self.get_lib_path()));
#[cfg(unix)]
exports.push(format!("export LIBCLANG_PATH=\"{}\"", self.get_lib_path()));