[swift-evolution] [Draft] Expanding Build Configuration Tests for Simulator and Device targets

William Dillon william at housedillon.com
Mon Mar 14 15:49:16 CDT 2016


(didn’t reply all)

Synonymous is not the right word, you’re right.  I mean that you can’t use them interchangeably.

For example, in Foundation TargetConditionals.h, only __arm64__ was tested for (I’m assuming the build system sets that somehow when Foundation is built for iOS).  In Linux, it isn’t __aarch64__ is.  So, I can’t just interchange them. Because of this, I end up with #elif __arm64__ || __aarch64__ and that feels a little silly.

- Will

> On Mar 14, 2016, at 1:41 PM, Chris Lattner <clattner at apple.com> wrote:
> 
>> 
>> On Mar 14, 2016, at 1:41 PM, William Dillon via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>> 
>> That reminds me, arm64 and aarch64 are equivalent, inconsistently used, and not synonymous.  I’m not suggesting that anything change in Erica’s proposal, but it might be worth a little bit of discussion to decide whether arm64 will be the one, and only, name for 64-bit arm in swift.
> 
> What do you mean by "not synonymous”?
> 
> -Chris
> 
>> 
>> - Will
>> 
>>> On Mar 14, 2016, at 1:05 PM, Dmitri Gribenko via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>>> 
>>> I'm afraid it is just the source code.
>>> 
>>> Dmitri
>>> 
>>> On Mon, Mar 14, 2016 at 1:04 PM, Erica Sadun <erica at ericasadun.com <mailto:erica at ericasadun.com>> 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 <gribozavr at gmail.com <mailto:gribozavr at gmail.com>> wrote:
>>>>> 
>>>>> On Mon, Mar 14, 2016 at 11:29 AM, Erica Sadun via swift-evolution
>>>>> <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> 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 <gribozavr at gmail.com <mailto:gribozavr at gmail.com>>*/
>>>> 
>>> 
>>> 
>>> 
>>> -- 
>>> 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 <gribozavr at gmail.com <mailto:gribozavr at gmail.com>>*/
>>> _______________________________________________
>>> swift-evolution mailing list
>>> swift-evolution at swift.org <mailto:swift-evolution at swift.org>
>>> https://lists.swift.org/mailman/listinfo/swift-evolution <https://lists.swift.org/mailman/listinfo/swift-evolution>
>> _______________________________________________
>> swift-evolution mailing list
>> swift-evolution at swift.org <mailto:swift-evolution at swift.org>
>> https://lists.swift.org/mailman/listinfo/swift-evolution <https://lists.swift.org/mailman/listinfo/swift-evolution>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160314/08f1396b/attachment.html>


More information about the swift-evolution mailing list