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 @@ -2037,6 +2037,13 @@ def src_dir(self):
2037
2037
def newestOutput (self ):
2038
2038
return None
2039
2039
2040
+ def needsBuild (self , newestInput ):
2041
+ if self .args .force :
2042
+ return True , 'forced build'
2043
+ if not os .path .exists (self .subject .get_output_root ()):
2044
+ return True , 'inexisting output dir'
2045
+ return False , 'unimplemented'
2046
+
2040
2047
def clean (self , forBuild = False ):
2041
2048
if forBuild == "reallyForBuild" :
2042
2049
try :
@@ -2086,8 +2093,12 @@ def clean(self, forBuild=False):
2086
2093
result = 0
2087
2094
if not forBuild :
2088
2095
try :
2089
- shutil .rmtree (self ._dev_headers_dir ())
2090
- except BaseException :
2096
+ mx .logv ('Cleaning {0}...' .format (self ._dev_headers_dir ()))
2097
+ shutil .rmtree (self ._dev_headers_dir (), ignore_errors = True )
2098
+ mx .logv ('Cleaning {0}...' .format (self .subject .get_output_root ()))
2099
+ shutil .rmtree (self .subject .get_output_root (), ignore_errors = True )
2100
+ except BaseException as e :
2101
+ mx .logv ('Error while cleaning: {0}' .format (e ))
2091
2102
result = 1
2092
2103
return max (result , super ().clean (forBuild = forBuild ))
2093
2104
You can’t perform that action at this time.
0 commit comments