* Add an option to use an arch sub-directory for installing libraries.
* Rename variables to be consistent with other CMake variables in the
project.
* Remove PlatformInfo as it is no longer needed.
Previously, libs 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.
This changes to use the standard modern layout format for swiftmodules.
Lowercasing `CMAKE_SYSTEM_NAME` to find the name Swift uses for a platform
is not guaranteed to work. Instead, use the `SWIFT_SYSTEM_NAME` variable,
which lets us override the name when building the Static SDK for Linux.
Fixes#420.
* [cmake] Support amd64 architecture name.
On OpenBSD, "x86_64" is called "amd64", and therefore recognition of this
name is required for the cmake build.
* [cmake] Add missing file.
This is required since, for example, `Deque+Extras` requires
`_withContiguousStorageIfAvailable_SR14663`.
* ManagedBuffer.capacity is unavailable on OpenBSD.
ManagedBuffer requires nonstandard API to implement `capacity` and
subsequently is unavailable on OpenBSD. For portability, just use
`minimumCapacity` on this platform.