mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
On Windows, there are multiple variants of the C runtime that must be explicitly specified and consistently used from the runtime to the application. The new `-libc` option allows us to control the linking phase by correctly embedding the requested library to be linked. It is made into a required parameter on Windows and will add in the appropriate flags for the imported C headers as well. This ensures that the C library is not incorrectly linked.