www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - LDC for iOS

reply Dan Olson <zans.is.for.cans yahoo.com> writes:
I think this all is in good enough shape that someone else should give
it a try.

https://github.com/smolt/ldc-iphone-dev

This is an LDC development sandbox for iPhone iOS.

It glues together various pieces needed to build an LDC cross compiler
targeting iPhoneOS.  It also includes a few samples to show how to get
started. The compiler and libraries are in good enough shape to pass the
druntime/phobos unittests with a few minor test failures (see project
README.md).  This means someone could, if so inclined, build their D
library and use it in an iOS App.

Currently based on LDC 0.15.1 (DMD v2.066.1) and LLVM 3.5.1.

There are no prebuild binaries, so you have to do it yourself.  Nobody
has reported yet on trying to build beside me, so there may be potholes.

Enjoy,
Dan
Feb 26 2015
next sibling parent reply Jacob Carlborg <doob me.com> writes:
On 2015-02-26 19:34, Dan Olson wrote:
 I think this all is in good enough shape that someone else should give
 it a try.
Awesome work. I could successfully compile the compiler and compile Hello World without any problems. I did not try running it on an a device. -- /Jacob Carlborg
Feb 26 2015
parent "Dan Olson" <zans4cans yahoo.com> writes:
On Thursday, 26 February 2015 at 19:26:07 UTC, Jacob Carlborg 
wrote:
 I could successfully compile the compiler and compile Hello 
 World without any problems. I did not try running it on an a 
 device.
Thanks Jacob!
Feb 26 2015
prev sibling parent reply "Chris" <wendlec tcd.ie> writes:
On Thursday, 26 February 2015 at 18:35:00 UTC, Dan Olson wrote:
 I think this all is in good enough shape that someone else 
 should give
 it a try.

 https://github.com/smolt/ldc-iphone-dev

 This is an LDC development sandbox for iPhone iOS.

 It glues together various pieces needed to build an LDC cross 
 compiler
 targeting iPhoneOS.  It also includes a few samples to show how 
 to get
 started. The compiler and libraries are in good enough shape to 
 pass the
 druntime/phobos unittests with a few minor test failures (see 
 project
 README.md).  This means someone could, if so inclined, build 
 their D
 library and use it in an iOS App.

 Currently based on LDC 0.15.1 (DMD v2.066.1) and LLVM 3.5.1.

 There are no prebuild binaries, so you have to do it yourself.  
 Nobody
 has reported yet on trying to build beside me, so there may be 
 potholes.

 Enjoy,
 Dan
Thank you very much! Although I cannot test it right now (working mainly on Linux), I will soon give it a go, because we've been asked several times whether one of our apps will be available on the iPhone/iPad one day. This is very important work and, again, I thank you for your efforts.
Feb 27 2015
parent makedgreatagain <patrick.kh7788 gmail.com> writes:
On Friday, 27 February 2015 at 11:11:36 UTC, Chris wrote:
 On Thursday, 26 February 2015 at 18:35:00 UTC, Dan Olson wrote:
 I think this all is in good enough shape that someone else 
 should give
 it a try.

 https://github.com/smolt/ldc-iphone-dev

 This is an LDC development sandbox for iPhone iOS.

 It glues together various pieces needed to build an LDC cross 
 compiler
 targeting iPhoneOS.  It also includes a few samples to show 
 how to get
 started. The compiler and libraries are in good enough shape 
 to pass the
 druntime/phobos unittests with a few minor test failures (see 
 project
 README.md).  This means someone could, if so inclined, build 
 their D
 library and use it in an iOS App.

 Currently based on LDC 0.15.1 (DMD v2.066.1) and LLVM 3.5.1.

 There are no prebuild binaries, so you have to do it yourself.
  Nobody
 has reported yet on trying to build beside me, so there may be 
 potholes.

 Enjoy,
 Dan
Thank you very much! Although I cannot test it right now (working mainly on Linux), I will soon give it a go, because we've been asked several times whether one of our apps will be available on the iPhone/iPad one day. This is very important work and, again, I thank you for your efforts.
Hi Dan Olson, This is very great work but the ldc version is too old. I try patch it into last ldc master branch get a lot error(thanks Joakim for a lot help). Can you help to check what need to be modify to made it buildable ? (It require modify some file like abi-ios* to work).
Jun 20 2018