Skip to content

Commit b64c12c

Browse files
kitasukeahoppen
authored andcommitted
Pass --enable-test-discovery to swift-build to allow running test on Linux
1 parent c9be22f commit b64c12c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build-script.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,11 @@ def get_installed_dylib_name():
161161
def get_swiftpm_invocation(toolchain, action, build_dir, release):
162162
swift_exec = os.path.join(toolchain, 'usr', 'bin', 'swift')
163163

164-
swiftpm_call = [swift_exec, action]
165-
swiftpm_call.extend(['--package-path', PACKAGE_DIR])
164+
swiftpm_call = [
165+
swift_exec, action,
166+
'--package-path', PACKAGE_DIR,
167+
'--enable-test-discovery'
168+
]
166169
if release:
167170
swiftpm_call.extend(['--configuration', 'release'])
168171
if build_dir:

0 commit comments

Comments
 (0)