Commit Graph
7 Commits
Author SHA1 Message Date
Fabrice de Gans 27e280f69e [cmake] Install libraries in standard directories (#685)
* [cmake] Install libraries in standard directories

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.

* Use full triple for swiftmodule filenames

* Extract Swift_MODULE_TRIPLE from the function

* Fail early in case the triple cannot be found

* Enable C language before using GNUInstallDirs

* Add C language in project definition

Enabling the C language after Swift was causing issues with using the C
compiler.
2025-02-03 09:13:09 -08:00
Neil Jones 6a7abc050b add support for riscv64 (#649) 2024-07-05 12:17:14 -07:00
3405691582 b936799bca OpenBSD support. (#291)
On this platform, the TIOCGWINSZ ioctl identifier is a complex macro.
Since we don't have a C bridging header obviously available to get the
flattened value, supply is the flattened value obtained elsewhere. This
is of course brittle but this is the simplest way around this for now.

Additionally, ensure we support the platform architecture name, where
the x86_64 architecture is called amd64 instead.
2021-03-29 12:46:26 -05:00
Robert Widmann b1380e7ec1 Update CMake to Support AS Hosts (#280) 2021-03-04 12:01:37 -08:00
Max Desiatov 4273ad222e Add support for Apple Silicon in SwiftSupport.cmake (#257)
This matches the behavior of [a similar `elseif` branch in the Swift toolchain itself](https://github.com/apple/swift/blob/b80e4bf8f866be26a4108bd92f97b2a182662642/CMakeLists.txt#L594).
2020-12-10 16:02:33 -06:00
Saleem Abdulrasool f18ce1a545 build: add support for installation (#150)
This extends the CMake build to install the artifacts.  This is required
for redistribution of the build.
2020-05-16 12:41:05 -05:00
Owen Voorhees 7fc05c0da1 [build] CMake updates to support use in SwiftPM bootstrap (#139) 2020-05-12 10:56:46 -05:00