Skip to content

Commit 78eb881

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 109244c commit 78eb881

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
@@ -251,6 +251,13 @@ def convert_to_impl_arguments(self):
251251
args.extra_cmake_options.append(
252252
'-DSWIFT_PATH_TO_SWIFT_SYNTAX_SOURCE:PATH={}'.format(swift_syntax_src))
253253

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

0 commit comments

Comments
 (0)