@@ -112,9 +112,7 @@ def run_command(args, dry_run):
112
112
raise
113
113
114
114
115
- def make_dirs_if_needed (path , dry_run ):
116
- if dry_run :
117
- return
115
+ def make_dirs_if_needed (path ):
118
116
try :
119
117
os .makedirs (path )
120
118
except OSError as e :
@@ -232,7 +230,7 @@ def log_output_to_file(content, module_name, interface_base, label, log_path):
232
230
return
233
231
if not content :
234
232
return
235
- make_dirs_if_needed (log_path , dry_run = False )
233
+ make_dirs_if_needed (log_path )
236
234
log_name = module_name + "-" + interface_base + "-" + label + ".txt"
237
235
with open (os .path .join (log_path , log_name ), "w" ) as output_file :
238
236
output_file .write (content )
@@ -296,7 +294,7 @@ def process_module(module_file):
296
294
module_file .name + ".swiftmodule" )
297
295
298
296
if interface_base != module_file .name :
299
- make_dirs_if_needed (output_path , args . dry_run )
297
+ make_dirs_if_needed (output_path )
300
298
output_path = os .path .join (output_path ,
301
299
interface_base + ".swiftmodule" )
302
300
@@ -408,7 +406,7 @@ def main():
408
406
with open (args .xfails ) as xfails_file :
409
407
xfails = json .load (xfails_file )
410
408
411
- make_dirs_if_needed (args .output_dir , args . dry_run )
409
+ make_dirs_if_needed (args .output_dir )
412
410
413
411
# Copy a file containing SDK build version into the prebuilt module dir,
414
412
# so we can keep track of the SDK version we built from.
0 commit comments