Skip to content

Commit 51eb031

Browse files
committed
[build-script-helper] Always do a clean build, to workaround an incremental build bug in swiftpm
1 parent 9c834d0 commit 51eb031

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Utilities/build-script-helper.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ def handle_invocation(swift_exec, args):
6363
supp = os.path.join(args.package_path, 'Utilities', 'ubsan_supressions.supp')
6464
env['UBSAN_OPTIONS'] = 'halt_on_error=true,suppressions=%s' % supp
6565

66+
# Workaround for incremental build bug in swiftpm.
67+
print('Cleaning ' + args.build_path)
68+
shutil.rmtree(args.build_path, ignore_errors=True)
69+
6670
if args.action == 'build':
6771
swiftpm('build', swift_exec, swiftpm_args, env)
6872
elif args.action == 'test':

0 commit comments

Comments
 (0)