iphone + LDC, a new ARM adventure
Joakim
joakim at airpost.net
Thu Feb 6 03:52:56 PST 2014
On Wednesday, 5 February 2014 at 17:31:23 UTC, Dan Olson wrote:
> "Kai Nacke" <kai at redstar.de> writes:
>
>> I think the that modules ctors/dtors are not calles may be a
>> side
>> effect of not having the right version identifier. As soon as
>> you know
>> what version identifier you need, please let me know. I'll add
>> it
>> asap.
>
> Currently the verison(OSX) works in most places for iOS, or at
> least it
> compiles. Where I know there is a difference, I used nested
> version
> blocks by ARM. In the sections code, the existing version OSX
> code is
> being compiled without error, but does not work. I need to
> study it.
>
> I am not sure on the proper version handling yet. Most
> versioned code
> will be identical for OSX and IOS, so maybe most places in
> druntime
> should use version(darwin), then nested OSX/IOS when there is a
> difference? Does that make sense?
That sounds like a reasonable approach. Alternately, you could
use X86/ARM, since OS X only runs on x86 now and iOS on ARM,
which would be easier since those architecture keywords already
exist, but perhaps not future-proof if Apple ever releases that
ARM-based OS X laptop. ;) Darwin and iOS aren't in the predefined
global versions in dmd's cond.c, so you might want to add them if
you use those.
More information about the digitalmars-d-ldc
mailing list