File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -187,10 +187,19 @@ impl Installable for Llvm {
187
187
let mut exports: Vec < String > = Vec :: new ( ) ;
188
188
189
189
#[ cfg( unix) ]
190
- let is_installed = Path :: new ( & self . path ) . exists ( ) ;
190
+ let install_path = if self . extended {
191
+ Path :: new ( & self . path ) . join ( "esp-clang" ) . join ( "include" )
192
+ } else {
193
+ Path :: new ( & self . path ) . to_path_buf ( )
194
+ } ;
191
195
#[ cfg( windows) ]
192
- let is_installed = self . path . join ( & self . version ) . exists ( ) ;
193
- if is_installed {
196
+ let install_path = if self . extended {
197
+ self . path . join ( & self . version ) . join ( "include" )
198
+ } else {
199
+ self . path . join ( & self . version )
200
+ } ;
201
+
202
+ if install_path. exists ( ) {
194
203
warn ! (
195
204
"Previous installation of LLVM exists in: '{}'. Reusing this installation" ,
196
205
self . path. to_str( ) . unwrap( )
You can’t perform that action at this time.
0 commit comments