3 ms·
Linux support is hinted at in examples: #if os(Linux) import Glibc #else import Darwin.C #endif https://swift.org/package-manager/#example-usage htt
by espadrine 11y ago
Linux support is hinted at in examples:
#if os(Linux)
import Glibc
#else
import Darwin.C
#endif
https://swift.org/package-manager/#example-usage https://swift.org/package-manager/#example-usage
- skrause 11y agoI guess the fact that there are official Linux packages in the download section are a pretty good hint that there will be Linux support.
- espadrine 11y agoThanks, I'm trying to download it.
- sswezey 11y agoLinux support was listed as a design goal for open sourcing Swift @ WWDC
- mikeash 11y agoLinux support was officially announced as part of the open source announcement, and Linux downloads are explicitly listed on the site. No need for hints.
- legulere 11y agoI guess the idea is that you will be able to run the same code from your fronted (iOS, OS X) also in the backend (some Linux server).