File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -2044,6 +2044,13 @@ def src_dir(self):
2044
2044
def newestOutput (self ):
2045
2045
return None
2046
2046
2047
+ def needsBuild (self , newestInput ):
2048
+ if self .args .force :
2049
+ return True , 'forced build'
2050
+ if not os .path .exists (self .subject .get_output_root ()):
2051
+ return True , 'inexisting output dir'
2052
+ return False , 'unimplemented'
2053
+
2047
2054
def clean (self , forBuild = False ):
2048
2055
if forBuild == "reallyForBuild" :
2049
2056
try :
@@ -2093,8 +2100,12 @@ def clean(self, forBuild=False):
2093
2100
result = 0
2094
2101
if not forBuild :
2095
2102
try :
2096
- shutil .rmtree (self ._dev_headers_dir ())
2097
- except BaseException :
2103
+ mx .logv ('Cleaning {0}...' .format (self ._dev_headers_dir ()))
2104
+ shutil .rmtree (self ._dev_headers_dir (), ignore_errors = True )
2105
+ mx .logv ('Cleaning {0}...' .format (self .subject .get_output_root ()))
2106
+ shutil .rmtree (self .subject .get_output_root (), ignore_errors = True )
2107
+ except BaseException as e :
2108
+ mx .logv ('Error while cleaning: {0}' .format (e ))
2098
2109
result = 1
2099
2110
return max (result , super ().clean (forBuild = forBuild ))
2100
2111
You can’t perform that action at this time.
0 commit comments