Skip to content

Commit 07b3b8e

Browse files
authored
Merge pull request swiftlang#26269 from benlangmuir/ninja-sk-isdb-build-script
[build-script] Pass ninja path to indexstore-db/sourcekit-lsp
2 parents d71790b + 7f3a1e2 commit 07b3b8e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

utils/build-script

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ class BuildScriptInvocation(object):
136136
def apply_default_arguments(toolchain, args):
137137
# Infer if ninja is required
138138
ninja_required = (
139-
args.cmake_generator == 'Ninja' or args.build_foundation)
139+
args.cmake_generator == 'Ninja' or args.build_foundation
140+
or args.build_sourcekitlsp or args.build_indexstoredb)
140141
if ninja_required and toolchain.ninja is None:
141142
args.build_ninja = True
142143

utils/swift_build_support/swift_build_support/products/indexstoredb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,6 @@ def run_build_script_helper(action, host_target, product, args):
5252
'--build-path', product.build_dir,
5353
'--configuration', configuration,
5454
'--toolchain', toolchain_path,
55+
'--ninja-bin', product.toolchain.ninja,
5556
]
5657
shell.call(helper_cmd)

0 commit comments

Comments
 (0)