-
Notifications
You must be signed in to change notification settings - Fork 203
[Build Script Helper] On macOS make install action use CMake and install libSwiftDriver #246
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
Conversation
b795c7a
to
66906bd
Compare
Two blockers for this, currently:
|
66906bd
to
693b1ba
Compare
@artemcm Just discussed @DougGregor about this, we could first disable |
Sounds good! I'll push through with resolving the remaining issues without using |
Thank you! |
268d83c
to
daef6f4
Compare
This is currently functional (I can build a simple swift program that imports and uses |
3467290
to
645f15d
Compare
@swift-ci please test |
1 similar comment
@swift-ci please test |
Note: This must be merged in tandem with: swiftlang/swift#33918 |
… install libSwiftDriver Previously only the x86 `swift-driver` and `swift-help` executables were copied over to the specified toolchain's `bin` directory. With this change, libSwiftDriver shared library is also packaged and installed into the toolchain, as well as libSwiftOptions. To do so, we must build SwiftDriver and all of its dependencies using CMake for arm64 and x86_64 and create universal binaries, as documented here: https://developer.apple.com/documentation/xcode/building_a_universal_macos_binary
…ad of static It is shared by SwiftDriver and SwiftOptions and building it as a static lib causes them to have common symbols. This does mean that we have to isntall TSC libraries into the toolchain as well
…hain, until needed Code commented-out with TODOs
645f15d
to
0a46481
Compare
@swift-ci please test |
@swift-ci please test |
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.
This all looks reasonable to me. Thank you!
No longer needed with swiftlang#263
0a46481
to
9d43e33
Compare
@swift-ci please test |
Previously only the x86
swift-driver
andswift-help
executables were copied over to the specified toolchain'sbin
directory.With this change,
libSwiftDriver
shared library is also packaged and installed into the toolchain, as well aslibSwiftOptions
.To do so, we build the driver and all of its dependencies using CMake for
arm64
andx86_64
and create universal binaries, as documented here.Because the driver's dependencies need to come along for the ride, the installed artifacts are as follows, within the specified toolchain:
Executables:
Binary Modules and Shared Libraries
C Module .modulemap and header files
Misc
Yams
dependency isimplementationOnly
and is built as a static-library.ArgumentParser.swiftmodule
andlibArgumentParser.dylib
must also be installed into the toolchain, but the code currently omits them, to avoid adding them to the toolchain until they are actually needed.Resolves rdar://69708243