Skip to content

[swift][shared-build] Add swift as a subproject#13319

Open
Teemperor wants to merge 1 commit into
swiftlang:stable/21.xfrom
Teemperor:LLDB-SwiftMonoSwiftProj
Open

[swift][shared-build] Add swift as a subproject#13319
Teemperor wants to merge 1 commit into
swiftlang:stable/21.xfrom
Teemperor:LLDB-SwiftMonoSwiftProj

Conversation

@Teemperor

Copy link
Copy Markdown

This patch sets up swift/ as an subproject that will be build in the same build folder/infrastructure as the rest of LLVM. The swift dependencies we need to build are added as external projects.

This patch is a no-op when building with build-script.

@Teemperor Teemperor requested a review from a team as a code owner July 3, 2026 07:53
@Teemperor Teemperor requested a review from kastiglione July 3, 2026 07:53
@Teemperor

Copy link
Copy Markdown
Author

@swift-ci please test

@Teemperor

Teemperor commented Jul 3, 2026

Copy link
Copy Markdown
Author

See also #90361  #13318 #13320

@kastiglione kastiglione left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable. I have two initial questions, as I read through the details.

Comment on lines +9 to +14
# The top-level target is named "swift-driver-prebuilt". Downstream
# targets (e.g. swift-frontend) can call:
#
# add_dependencies(<target> swift-driver-prebuilt)
#
# to ensure swift-driver is built before the target is linked/used.

@kastiglione kastiglione Jul 6, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is adding a dependency on swift-driver-prebuilt (outside of this file) a scenario that you foresee being used elsewhere?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if swift-driver-prebuilt is not expected to be used outside of this file, maybe the comment should be removed? If it is expected, can you comment which scenarios would call for adding a dependency on swift-driver-prebuilt.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that was just a claudish comment that I didn't catch when cleaning up the PR. Removed as I don't see this being useful information future.

Comment thread llvm/cmake/modules/AddLLVMSwiftDriver.cmake
This patch sets up swift/ as an subproject that will be build in the
same build folder/infrastructure as the rest of LLVM. The swift
dependencies we need to build are added as external projects.

This patch is a no-op when building with build-script.
@Teemperor Teemperor force-pushed the LLDB-SwiftMonoSwiftProj branch from 8f48727 to 39aee99 Compare July 8, 2026 08:23
@Teemperor

Copy link
Copy Markdown
Author

@swift-ci smoke test

@Teemperor

Copy link
Copy Markdown
Author

@swift-ci test windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants