www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - darwin version for IOS not work anymore

reply workman <workman gmail.com> writes:
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
```d
version(darwin) {
	
} else {
	static assert(false);
}
```
Jul 28 2021
parent reply rikki cattermole <rikki cattermole.co.nz> writes:
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
Jul 28 2021
parent workman <workman gmail.com> writes:
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.
Jul 29 2021