[cmake] Install libraries in standard directories#685
Conversation
Previously, libraries were installed under `lib/swift/${os}/`. They
should be installed in the default library directory for the relevant
target system.
In addition, swiftmodules were installed in the older layout format on
non-Darwin platforms. This changes to use the standard modern layout
format for swiftmodules.
|
@compnerd Before I get started on other libraries, is this what you had in mind? |
9ea1bc0 to
34f4919
Compare
|
@swift-ci please test |
|
This is going to require a cross-repository test to ensure that the toolchain builds don't break. |
|
@swift-ci please test |
etcwilde
left a comment
There was a problem hiding this comment.
Feel free to leave a bug report on CMake, but at the moment, GNUINstallDirs doesn't work for projects that only use Swift due to how CMake detects the correct library install dirs.
I filed https://gitlab.kitware.com/cmake/cmake/-/issues/26649 for this |
|
@swift-ci please test |
Enabling the C language after Swift was causing issues with using the C compiler.
|
I did a small update to enable C as part of the project definition. I was hitting issues with the C compiler otherwise. |
|
@swift-ci please test |
Previously, libraries were installed under
lib/swift/${os}/. They should be installed in the default library directory for the relevant target system.In addition, swiftmodules were installed in the older layout format on non-Darwin platforms. This changes to use the standard modern layout format for swiftmodules.
Checklist