Thread overview
darwin version for IOS not work anymore
Jul 28, 2021
workman
Jul 28, 2021
rikki cattermole
Jul 29, 2021
workman
July 28, 2021

This used to work, try with 1.27.0-beta3 get static assert: false is false

ldmd2 -mtriple=arm64-apple-ios14.4 -betterC test.d

test.d

version(darwin) {
	
} else {
	static assert(false);
}
July 29, 2021
On 29/07/2021 2:59 AM, workman wrote:
> version(darwin) {

The darwin version identifier is deprecated.

While it is still supported for OSX by the looks, its not supported for iOS.

https://github.com/ldc-developers/ldc/blob/926db58d5c4aa4ebf0a085cd6a6f2d425cbfbf76/driver/main.cpp#L796

vs

https://github.com/ldc-developers/ldc/blob/926db58d5c4aa4ebf0a085cd6a6f2d425cbfbf76/driver/main.cpp#L837
July 29, 2021
On Wednesday, 28 July 2021 at 15:42:38 UTC, rikki cattermole wrote:
> On 29/07/2021 2:59 AM, workman wrote:
>> version(darwin) {
>
> The darwin version identifier is deprecated.
>
> While it is still supported for OSX by the looks, its not supported for iOS.
>
> https://github.com/ldc-developers/ldc/blob/926db58d5c4aa4ebf0a085cd6a6f2d425cbfbf76/driver/main.cpp#L796
>
> vs
>
> https://github.com/ldc-developers/ldc/blob/926db58d5c4aa4ebf0a085cd6a6f2d425cbfbf76/driver/main.cpp#L837

I dont understand why just OSX get "For backwards compatibility.".

We need a version for all apple platform,  remove darwin should replace with a new one.