Skip to content

Commit 37d003e

Browse files
committed
Don’t clean build directory prior to building
AFAICT cleaning the build directory prior to building was done to work around a bug in SwiftPM at some point. I don’t think that it’s needed anymore.
1 parent a15bd61 commit 37d003e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Utilities/build-script-helper.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,6 @@ def handle_invocation(swift_exec: str, args: argparse.Namespace) -> None:
214214
"""
215215
Depending on the action in 'args', build the package, installs the package or run tests.
216216
"""
217-
if not args.no_clean:
218-
print('Cleaning ' + args.build_path)
219-
shutil.rmtree(args.build_path, ignore_errors=True)
220-
221217
if args.action == 'build':
222218
build(swift_exec, args)
223219
elif args.action == 'test':

0 commit comments

Comments
 (0)