Skip to content

Commit 7fd97ee

Browse files
committed
Pass the early SwiftSyntax build directory down to build-script-impl.
This gives LLDB's CMake build access to the build directory.
1 parent 57d8231 commit 7fd97ee

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

utils/swift_build_support/swift_build_support/build_script_invocation.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,13 @@ def convert_to_impl_arguments(self):
250250
args.extra_cmake_options.append(
251251
'-DSWIFT_PATH_TO_SWIFT_SYNTAX_SOURCE:PATH={}'.format(swift_syntax_src))
252252

253+
if args.build_early_swiftsyntax:
254+
early_swiftsyntax_build_dir = os.path.join(
255+
self.workspace.build_root, '%s-%s' % ('earlyswiftsyntax',
256+
self.args.host_target))
257+
args.extra_cmake_options.append(
258+
'-DSWIFT_PATH_TO_EARLYSWIFTSYNTAX_BUILD_DIR:PATH={}'.format(early_swiftsyntax_build_dir))
259+
253260
# Then add subproject install flags that either skip building them /or/
254261
# if we are going to build them and install_all is set, we also install
255262
# them.

0 commit comments

Comments
 (0)