Skip to content

Build indexstore-db and sourcekit-lsp in a unified SwiftPM build #60308

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

import os

from build_swift.build_swift.constants import MULTIROOT_DATA_FILE_PATH

from . import cmark
from . import foundation
from . import libcxx
Expand Down Expand Up @@ -41,6 +43,10 @@ def is_build_script_impl_product(cls):
def is_before_build_script_impl_product(cls):
return False

@classmethod
def is_swiftpm_unified_build_product(cls):
return True

def should_build(self, host_target):
return True

Expand Down Expand Up @@ -95,6 +101,7 @@ def run_build_script_helper(action, host_target, product, args,
'--configuration', configuration,
'--toolchain', toolchain_path,
'--ninja-bin', product.toolchain.ninja,
'--multiroot-data-file', MULTIROOT_DATA_FILE_PATH,
]
if args.verbose_build:
helper_cmd.append('--verbose')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ def is_build_script_impl_product(cls):
def is_before_build_script_impl_product(cls):
return False

@classmethod
def is_swiftpm_unified_build_product(cls):
return True

def should_build(self, host_target):
return True

Expand Down