Skip to content

Commit 0728e68

Browse files
authored
Merge pull request #60355 from ahoppen/pr/no-cross-compile-tests
Don’t cross-compile sourcekit-lsp and indexstore-db when running tests
2 parents 8e0278a + c488f76 commit 0728e68

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
@@ -111,8 +111,9 @@ def run_build_script_helper(action, host_target, product, args,
111111
if not clean:
112112
helper_cmd.append('--no-clean')
113113

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

0 commit comments

Comments
 (0)