Skip to content

Commit 0a0c53e

Browse files
authored
Merge pull request #28091 from ahoppen/swiftevolve-unified-build
[build-script] Build SwiftEvolve as part of the unified build
2 parents 42a2aea + ac9288d commit 0a0c53e

File tree

2 files changed

+3
-33
lines changed

2 files changed

+3
-33
lines changed

utils/swift_build_support/SwiftPM-Unified-Build.xcworkspace/contents.xcworkspacedata

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

utils/swift_build_support/swift_build_support/products/swiftevolve.py

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
#
1111
# ----------------------------------------------------------------------------
1212

13-
import os
14-
1513
from . import skstresstester
16-
from .. import shell
1714

1815

1916
class SwiftEvolve(skstresstester.SKStressTester):
@@ -25,39 +22,9 @@ def product_source_name(cls):
2522
"""
2623
return "swift-stress-tester"
2724

28-
@classmethod
29-
def is_swiftpm_unified_build_product(cls):
30-
return False
31-
3225
def package_name(self):
3326
return 'SwiftEvolve'
3427

35-
# Copy of the build-script-helper invocation without the multiroot data
36-
# file. Remove again once SwiftEvolve also builds in the unified build.
37-
def run_build_script_helper(self, action, additional_params=[]):
38-
script_path = os.path.join(
39-
self.source_dir, 'build-script-helper.py')
40-
41-
configuration = 'release' if self.is_release() else 'debug'
42-
43-
helper_cmd = [
44-
script_path,
45-
action,
46-
'--package-dir', self.package_name(),
47-
'--toolchain', self.install_toolchain_path(),
48-
'--config', configuration,
49-
'--build-dir', self.build_dir,
50-
# There might have been a Package.resolved created by other builds
51-
# or by the package being opened using Xcode. Discard that and
52-
# reset the dependencies to be local.
53-
'--update'
54-
]
55-
if self.args.verbose_build:
56-
helper_cmd.append('--verbose')
57-
helper_cmd.extend(additional_params)
58-
59-
shell.call(helper_cmd)
60-
6128
# Inherit the entire build configuration from the SourceKit stress tester
6229

6330
def should_build(self, host_target):

0 commit comments

Comments
 (0)