-
Notifications
You must be signed in to change notification settings - Fork 1.2k
build: Install libraries in an arch
sub-folder
#5257
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
base: main
Are you sure you want to change the base?
build: Install libraries in an arch
sub-folder
#5257
Conversation
@swift-ci please test |
ef23f75
to
ea40b13
Compare
@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.
I'm still not entirely sure I'm following what this change is intended to do - could you elaborate on the background/context a bit more? My current understanding is that when we ship the toolchain we ship a single swift module with multiple architectures within it. Do I have that right? And if so, is this intending to change how that is done but only on some platforms where SwiftFoundation_INSTALL_ARCH_SUBDIR
is set?
This is the proper installation scheme for Swift libraries and prevents having to manually copy them in `build.ps1`.
* Update the C and C++ libraries to also install the arch sub-directory. * Simplify the logic to gather the arch and triple data.
ea40b13
to
81c5202
Compare
@jmschonfeld PTAL, my apologies it took me a while to get back to this.
The Windows toolchain layout expects that the native libraries are installed in an architecture sub-directory. There is a manual step in the build script for Windows to copy the libraries in the right folder that warns about these in this manner:
This PR aims to fix the problem by installing the libraries in the right directory with this new configuration option. |
This is the proper installation scheme for Swift libraries on Windows and prevents having to manually copy them in
build.ps1
.