-
Notifications
You must be signed in to change notification settings - Fork 204
Install swift-system
into the toolchain during CMake build's install
action
#953
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
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -254,8 +254,9 @@ def install_swiftdriver(args, build_dir, prefix, targets) : | |
|
||
# Binary Swift Modules: | ||
# swift-driver: SwiftDriver.swiftmodule, SwiftOptions.swiftmodule | ||
# TODO: swift-argument-parser: ArgumentParser.swiftmodule (disabled until needed) | ||
# swift-tools-support-core: TSCUtility.swiftmodule, TSCLibc.swiftmodule, TSCBasic.swiftmodule | ||
# swift-argument-parser: ArgumentParser.swiftmodule (disabled until needed) | ||
# swift-system: SystemPackage.swiftmodule | ||
install_binary_swift_modules(args, build_dir, install_lib, targets) | ||
|
||
# Modulemaps for C Modules: | ||
|
@@ -333,10 +334,17 @@ def install_libraries(args, build_dir, universal_lib_dir, toolchain_lib_dir, tar | |
install_library(args, build_dir, package_subpath, lib, | ||
universal_lib_dir, toolchain_lib_dir, 'swift-tools-support-core', targets) | ||
|
||
# Instal the swift-system shared library into the toolchain lib | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typo copied 3 times: |
||
package_subpath = os.path.join(args.configuration, 'dependencies', 'swift-system') | ||
install_library(args, build_dir, package_subpath, 'libSystemPackage', | ||
universal_lib_dir, toolchain_lib_dir, 'swift-system', targets) | ||
|
||
# Instal the swift-argument-parser shared library into the toolchain lib | ||
package_subpath = os.path.join(args.configuration, 'dependencies', 'swift-argument-parser') | ||
install_library(args, build_dir, package_subpath, 'libArgumentParser', | ||
universal_lib_dir, toolchain_lib_dir,'swift-argument-parser', targets) | ||
|
||
# Instal the llbuild core shared libraries into the toolchain lib | ||
package_subpath = os.path.join(args.configuration, 'dependencies', 'llbuild') | ||
for lib in ['libllbuildSwift', 'libllbuild']: | ||
install_library(args, build_dir, package_subpath, lib, | ||
|
@@ -377,6 +385,12 @@ def install_binary_swift_modules(args, build_dir, toolchain_lib_dir, targets): | |
product_subpath) | ||
install_module(args, build_dir, package_subpath, toolchain_lib_dir, 'ArgumentParser', targets) | ||
|
||
# swift-system | ||
package_subpath = os.path.join(args.configuration, 'dependencies', 'swift-system', | ||
product_subpath) | ||
install_module(args, build_dir, package_subpath, toolchain_lib_dir, 'SystemPackage', targets) | ||
|
||
|
||
# Install the modulemaps and headers of the driver's C module dependencies into the toolchain | ||
# include directory | ||
def install_c_module_includes(args, build_dir, toolchain_include_dir): | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the swiftmodule required? Do you expect to be building against the installed version of swift-driver?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potential clients of
libSwiftDriver
would need it if they try to use the toolchain's driver library instead of depending on it as a package.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think its an interesting question to understand who such clients are and if static vs dynamic linking of the dependencies is the right strategy.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for now 👍 to unblock the nightly toolchain tho