* [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.
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.