Skip to content

Commit b2de6b2

Browse files
authored
Merge pull request #2023 from swiftwasm/main
[pull] swiftwasm from main
2 parents 7a79b35 + 3029ce8 commit b2de6b2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

utils/swift_build_sdk_interfaces.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ def run_command(args, dry_run):
112112
raise
113113

114114

115-
def make_dirs_if_needed(path, dry_run):
116-
if dry_run:
117-
return
115+
def make_dirs_if_needed(path):
118116
try:
119117
os.makedirs(path)
120118
except OSError as e:
@@ -232,7 +230,7 @@ def log_output_to_file(content, module_name, interface_base, label, log_path):
232230
return
233231
if not content:
234232
return
235-
make_dirs_if_needed(log_path, dry_run=False)
233+
make_dirs_if_needed(log_path)
236234
log_name = module_name + "-" + interface_base + "-" + label + ".txt"
237235
with open(os.path.join(log_path, log_name), "w") as output_file:
238236
output_file.write(content)
@@ -296,7 +294,7 @@ def process_module(module_file):
296294
module_file.name + ".swiftmodule")
297295

298296
if interface_base != module_file.name:
299-
make_dirs_if_needed(output_path, args.dry_run)
297+
make_dirs_if_needed(output_path)
300298
output_path = os.path.join(output_path,
301299
interface_base + ".swiftmodule")
302300

@@ -408,7 +406,7 @@ def main():
408406
with open(args.xfails) as xfails_file:
409407
xfails = json.load(xfails_file)
410408

411-
make_dirs_if_needed(args.output_dir, args.dry_run)
409+
make_dirs_if_needed(args.output_dir)
412410

413411
# Copy a file containing SDK build version into the prebuilt module dir,
414412
# so we can keep track of the SDK version we built from.

0 commit comments

Comments
 (0)