mirror of
https://github.com/esp-rs/espup.git
synced 2025-10-02 15:14:56 +00:00
fix: When using extended LLVM check if the include folder is present
This commit is contained in:
parent
4cd89f3920
commit
025792b2b0
@ -187,10 +187,19 @@ impl Installable for Llvm {
|
|||||||
let mut exports: Vec<String> = Vec::new();
|
let mut exports: Vec<String> = Vec::new();
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
let is_installed = Path::new(&self.path).exists();
|
let install_path = if self.extended {
|
||||||
|
Path::new(&self.path).join("esp-clang").join("include")
|
||||||
|
} else {
|
||||||
|
Path::new(&self.path).to_path_buf()
|
||||||
|
};
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
let is_installed = self.path.join(&self.version).exists();
|
let install_path = if self.extended {
|
||||||
if is_installed {
|
self.path.join(&self.version).join("include")
|
||||||
|
} else {
|
||||||
|
self.path.join(&self.version)
|
||||||
|
};
|
||||||
|
|
||||||
|
if install_path.exists() {
|
||||||
warn!(
|
warn!(
|
||||||
"Previous installation of LLVM exists in: '{}'. Reusing this installation",
|
"Previous installation of LLVM exists in: '{}'. Reusing this installation",
|
||||||
self.path.to_str().unwrap()
|
self.path.to_str().unwrap()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user