Skip to content

Commit 111bc46

Browse files
authored
Merge pull request #75053 from finagolfin/clean
[build] Disable cleaning sourcekit-lsp by default, rather than having the flag do nothing
2 parents f7cde73 + 65de396 commit 111bc46

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

utils/swift_build_support/swift_build_support/products/indexstoredb.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def get_dependencies(cls):
8383

8484

8585
def run_build_script_helper(action, host_target, product, args,
86-
sanitize_all=False, clean=True):
86+
sanitize_all=False, clean=False):
8787
script_path = os.path.join(
8888
product.source_dir, 'Utilities', 'build-script-helper.py')
8989

@@ -113,8 +113,8 @@ def run_build_script_helper(action, host_target, product, args,
113113
elif args.enable_tsan:
114114
helper_cmd.extend(['--sanitize', 'thread'])
115115

116-
if not clean:
117-
helper_cmd.append('--no-clean')
116+
if clean:
117+
helper_cmd.append('--clean')
118118

119119
# Pass Cross compile host info unless we're testing.
120120
# It doesn't make sense to run tests of the cross compile host.

utils/swift_build_support/swift_build_support/products/sourcekitlsp.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ def should_test(self, host_target):
5353
def test(self, host_target):
5454
indexstoredb.run_build_script_helper(
5555
'test', host_target, self, self.args,
56-
self.args.test_sourcekitlsp_sanitize_all, clean=False)
56+
self.args.test_sourcekitlsp_sanitize_all)
5757

5858
def should_install(self, host_target):
5959
return self.args.install_sourcekitlsp
6060

6161
def install(self, host_target):
6262
indexstoredb.run_build_script_helper(
63-
'install', host_target, self, self.args, clean=False)
63+
'install', host_target, self, self.args)
6464

6565
@classmethod
6666
def get_dependencies(cls):

0 commit comments

Comments
 (0)