mirror of
https://github.com/esp-rs/espup.git
synced 2025-09-30 06:10:37 +00:00
style: 🎨 Format Windows export file (#135)
This commit is contained in:
parent
a040fac76a
commit
73aa09f83c
@ -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()));
|
||||
|
||||
|
@ -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()));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user