Skip to content

Commit 22116ca

Browse files
authored
Merge pull request #273 from benlangmuir/clean-53
[5.3] [build-script] Clean build directory
2 parents a51b76e + f9b89f3 commit 22116ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Utilities/build-script-helper.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ def add_common_args(parser):
126126
if args.ninja_bin:
127127
env['NINJA_BIN'] = args.ninja_bin
128128

129+
print('Cleaning ' + args.build_path)
130+
shutil.rmtree(args.build_path, ignore_errors=True)
131+
129132
if args.action == 'build':
130133
swiftpm('build', swift_exec, swiftpm_args, env)
131134
elif args.action == 'test':

0 commit comments

Comments
 (0)