The reference for build configuration statements[1] has a list of platforms and 
operating systems.  If that list is out of date, it's a documentation bug — so 
thanks for pointing that out!

<rdar://problem/25244216> TSPL: Build configuration statements is missing 
Windows, FreeBSD, powerpc64, and powerpc64le

If you want to look in source, the list in lib/Basic/LangOptions.cpp reads as 
follows:

static const StringRef SupportedConditionalCompilationOSs[] = {
  "OSX",
  "tvOS",
  "watchOS",
  "iOS",
  "Linux",
  "FreeBSD",
  "Windows"
};

static const StringRef SupportedConditionalCompilationArches[] = {
  "arm",
  "arm64",
  "i386",
  "x86_64",
  "powerpc64",
  "powerpc64le"
};



1:
https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Statements.html#//apple_ref/doc/uid/TP40014097-CH33-ID538


> On Mar 14, 2016, at 1:05 PM, Dmitri Gribenko via swift-evolution 
> <[email protected]> wrote:
> 
> I'm afraid it is just the source code.
> 
> Dmitri
> 
> On Mon, Mar 14, 2016 at 1:04 PM, Erica Sadun <[email protected]> wrote:
>> Can you point me to a reference on this so I can keep up to date, or is it 
>> all just source and accepted proposals?
>> 
>> Thanks, -- E
>> 
>> 
>>> On Mar 14, 2016, at 1:58 PM, Dmitri Gribenko <[email protected]> wrote:
>>> 
>>> On Mon, Mar 14, 2016 at 11:29 AM, Erica Sadun via swift-evolution
>>> <[email protected]> wrote:
>>>> The os() function that tests for OSX, iOS, watchOS, tvOS, and Linux
>>> 
>>> and Windows, FreeBSD.
>>> 
>>>> The arch() function that tests for x86_64, arm, arm64, and i386
>>> 
>>> and powerpc64, powerpc64le.
>>> 
>>> Dmitri
>>> 
>>> --
>>> main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
>>> (j){printf("%d\n",i);}}} /*Dmitri Gribenko <[email protected]>*/
>> 
> 
> 
> 
> -- 
> main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
> (j){printf("%d\n",i);}}} /*Dmitri Gribenko <[email protected]>*/
> _______________________________________________
> swift-evolution mailing list
> [email protected]
> https://lists.swift.org/mailman/listinfo/swift-evolution

_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to