Skip to content

Commit 1f6b38e

Browse files
committed
Don�’t cross-compile sourcekit-lsp and indexstore-db when running tests
1 parent c036ba1 commit 1f6b38e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utils/swift_build_support/swift_build_support/products/indexstoredb.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ def run_build_script_helper(action, host_target, product, args,
118118
if not clean:
119119
helper_cmd.append('--no-clean')
120120

121-
# Pass Cross compile host info
122-
if product.has_cross_compile_hosts():
121+
# Pass Cross compile host info unless we're testing.
122+
# It doesn't make sense to run tests of the cross compile host.
123+
if product.has_cross_compile_hosts() and action != 'test':
123124
if product.is_darwin_host(host_target):
124125
if len(args.cross_compile_hosts) != 1:
125126
raise RuntimeError("Cross-Compiling indexstoredb to multiple " +

0 commit comments

Comments
 (0)