Skip to content

Commit db99785

Browse files
committed
[build-script] Pass ninja path to indexstore-db/sourcekit-lsp
1 parent 425a146 commit db99785

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
@@ -274,7 +274,8 @@ class BuildScriptInvocation(object):
274274
def apply_default_arguments(toolchain, args):
275275
# Infer if ninja is required
276276
ninja_required = (
277-
args.cmake_generator == 'Ninja' or args.build_foundation)
277+
args.cmake_generator == 'Ninja' or args.build_foundation
278+
or args.build_sourcekitlsp or args.build_indexstoredb)
278279
if ninja_required and toolchain.ninja is None:
279280
args.build_ninja = True
280281

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)