File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -622,8 +622,10 @@ def clean_build(self, arch=None):
622
622
base_dir = join (
623
623
self .ctx .build_dir , 'other_builds' , self .get_dir_name ()
624
624
)
625
+ archs = [arch .arch for arch in self .ctx .archs ]
625
626
else :
626
627
base_dir = self .get_build_container_dir (arch )
628
+ archs = [arch .arch ]
627
629
dirs = glob .glob (base_dir + '-*' )
628
630
if exists (base_dir ):
629
631
dirs .append (base_dir )
@@ -640,6 +642,15 @@ def clean_build(self, arch=None):
640
642
# doesn't persist in site-packages
641
643
shutil .rmtree (self .ctx .python_installs_dir )
642
644
645
+ if self .built_libraries :
646
+ for arch in archs :
647
+ for lib in self .get_recipe_libraries (arch , in_context = True ):
648
+ if isfile (lib ):
649
+ info ('Deleting ctx {arch} library {lib}' .format (
650
+ arch = arch , lib = split (lib )[- 1 ])
651
+ )
652
+ shprint (sh .rm , '-f' , lib )
653
+
643
654
def install_libs (self , arch , * libs ):
644
655
libs_dir = self .ctx .get_libs_dir (arch .arch )
645
656
if not libs :
You can’t perform that action at this time.
0 commit comments