Skip to content

Commit f9b89f3

Browse files
committed
[build-script] Clean build directory
Works around a swiftpm bug that causes incorrect incremental builds.
1 parent a51b76e commit f9b89f3

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)