Jump to page: 1 2 3
Thread overview
IOS support status
Jun 07, 2018
makedgreatagain
Jun 07, 2018
Joakim
Jun 07, 2018
makedgreatagain
Jun 07, 2018
Joakim
Jun 11, 2018
makedgreatagain
Jun 11, 2018
Joakim
Jun 12, 2018
Joakim
Jun 12, 2018
makedgreatagain
Jun 13, 2018
makedgreatagain
Jun 13, 2018
Joakim
Jun 15, 2018
makedgreatagain
Jun 15, 2018
makedgreatagain
Jun 15, 2018
Joakim
Jun 15, 2018
makedgreatagain
Jun 15, 2018
Joakim
Jun 15, 2018
makedgreatagain
Jun 15, 2018
Joakim
Jun 16, 2018
makedgreatagain
Jun 16, 2018
Joakim
Jun 16, 2018
makedgreatagain
Jun 16, 2018
makedgreatagain
Jun 16, 2018
Joakim
Jun 17, 2018
Uknown
Jun 18, 2018
makedgreatagain
Jun 20, 2018
Joakim
Jun 20, 2018
makedgreatagain
Jun 21, 2018
Joakim
Jun 29, 2018
elvisxzhou
June 07, 2018
The last IOS cross compiler https://github.com/smolt/ldc-iphone-dev/releases based on 0.17.0-alpha1, which is 3 years old.

I want to ask for suggestion, how can i build a cross  LDC2 compiler with just betterC function to work.

Thanks in advance.
June 07, 2018
On Thursday, 7 June 2018 at 05:58:48 UTC, makedgreatagain wrote:
> The last IOS cross compiler https://github.com/smolt/ldc-iphone-dev/releases based on 0.17.0-alpha1, which is 3 years old.
>
> I want to ask for suggestion, how can i build a cross  LDC2 compiler with just betterC function to work.

As you can see, the guy who did a lot of work with getting D running on iOS and other non-Mac Apple platforms has not been able to do anything with it for the last year or two.

Looking at his ldc fork, there's not much he had to change to the compiler by the end:

https://github.com/smolt/ldc/commits/ios

You could try applying those same patches to the latest ldc release and get it working. If you just want betterC, that's all you need, though I can't imagine it would take much to get druntime and Phobos updated too, as he had them both working well a couple years ago.

We are looking for someone to take over the iOS port, so if you or someone else is interested, please try it out. You can ask technical questions of the ldc devs directly in our forum or github:

https://forum.dlang.org/group/ldc
https://github.com/ldc-developers/ldc/
June 07, 2018
On Thursday, 7 June 2018 at 07:58:19 UTC, Joakim wrote:
> On Thursday, 7 June 2018 at 05:58:48 UTC, makedgreatagain wrote:
>> The last IOS cross compiler https://github.com/smolt/ldc-iphone-dev/releases based on 0.17.0-alpha1, which is 3 years old.
>>
>> I want to ask for suggestion, how can i build a cross  LDC2 compiler with just betterC function to work.
>
> As you can see, the guy who did a lot of work with getting D running on iOS and other non-Mac Apple platforms has not been able to do anything with it for the last year or two.
>
> Looking at his ldc fork, there's not much he had to change to the compiler by the end:
>
> https://github.com/smolt/ldc/commits/ios
>
> You could try applying those same patches to the latest ldc release and get it working. If you just want betterC, that's all you need, though I can't imagine it would take much to get druntime and Phobos updated too, as he had them both working well a couple years ago.
>
> We are looking for someone to take over the iOS port, so if you or someone else is interested, please try it out. You can ask technical questions of the ldc devs directly in our forum or github:
>
> https://forum.dlang.org/group/ldc
> https://github.com/ldc-developers/ldc/

Thanks for you suggestion Joakim.

I try follow your suggestion,  get all commit from origin branch (116 commit by Dan Olson fro IOS brnach).

When I try cherry pick the first commit, get conflict the line number is 6232.  (the ios branch is base on cpp and master ldc is move to d).

I will try more but I guess It is hard for me to made it work.



June 07, 2018
On Thursday, 7 June 2018 at 11:58:58 UTC, makedgreatagain wrote:
> On Thursday, 7 June 2018 at 07:58:19 UTC, Joakim wrote:
>> [...]
>
> Thanks for you suggestion Joakim.
>
> I try follow your suggestion,  get all commit from origin branch (116 commit by Dan Olson fro IOS brnach).
>
> When I try cherry pick the first commit, get conflict the line number is 6232.  (the ios branch is base on cpp and master ldc is move to d).
>
> I will try more but I guess It is hard for me to made it work.

Huh, I didn't look that far back in the branch, may not be worth merging. How is his last release working? Do you want only betterC?  If so, you may be better off backporting the betterC patch that got it working later, shouldn't be much to that one.
June 11, 2018
On Thursday, 7 June 2018 at 14:12:15 UTC, Joakim wrote:
> On Thursday, 7 June 2018 at 11:58:58 UTC, makedgreatagain wrote:
>> On Thursday, 7 June 2018 at 07:58:19 UTC, Joakim wrote:
>>> [...]
>>
>> Thanks for you suggestion Joakim.
>>
>> I try follow your suggestion,  get all commit from origin branch (116 commit by Dan Olson fro IOS brnach).
>>
>> When I try cherry pick the first commit, get conflict the line number is 6232.  (the ios branch is base on cpp and master ldc is move to d).
>>
>> I will try more but I guess It is hard for me to made it work.
>
> Huh, I didn't look that far back in the branch, may not be worth merging. How is his last release working? Do you want only betterC?  If so, you may be better off backporting the betterC patch that got it working later, shouldn't be much to that one.

Thanks for your help.

The side thing is betterC change also base on d based branch,  which is very hard to backporting to cpp branch.


June 11, 2018
On Monday, 11 June 2018 at 02:58:28 UTC, makedgreatagain wrote:
> On Thursday, 7 June 2018 at 14:12:15 UTC, Joakim wrote:
>> On Thursday, 7 June 2018 at 11:58:58 UTC, makedgreatagain wrote:
>>> On Thursday, 7 June 2018 at 07:58:19 UTC, Joakim wrote:
>>>> [...]
>>>
>>> Thanks for you suggestion Joakim.
>>>
>>> I try follow your suggestion,  get all commit from origin branch (116 commit by Dan Olson fro IOS brnach).
>>>
>>> When I try cherry pick the first commit, get conflict the line number is 6232.  (the ios branch is base on cpp and master ldc is move to d).
>>>
>>> I will try more but I guess It is hard for me to made it work.
>>
>> Huh, I didn't look that far back in the branch, may not be worth merging. How is his last release working? Do you want only betterC?  If so, you may be better off backporting the betterC patch that got it working later, shouldn't be much to that one.
>
> Thanks for your help.
>
> The side thing is betterC change also base on d based branch,  which is very hard to backporting to cpp branch.

No, it only disables 4-5 things, so while you're right that it applies towards ddmd, it should be pretty easy to manually backport to the old C++ frontend. I plan to do so for the ltsmaster branch of ldc, its last C++ version, this week: you can apply that pull to Dan's ios branch or easily port it yourself.
June 12, 2018
On Monday, 11 June 2018 at 04:02:15 UTC, Joakim wrote:
> On Monday, 11 June 2018 at 02:58:28 UTC, makedgreatagain wrote:
>> On Thursday, 7 June 2018 at 14:12:15 UTC, Joakim wrote:
>>> [...]
>>
>> Thanks for your help.
>>
>> The side thing is betterC change also base on d based branch,  which is very hard to backporting to cpp branch.
>
> No, it only disables 4-5 things, so while you're right that it applies towards ddmd, it should be pretty easy to manually backport to the old C++ frontend. I plan to do so for the ltsmaster branch of ldc, its last C++ version, this week: you can apply that pull to Dan's ios branch or easily port it yourself.

My betterC backport is up, try it on Dan's iOS branch:

https://github.com/ldc-developers/ldc/pull/2748
June 12, 2018
On Tuesday, 12 June 2018 at 04:23:51 UTC, Joakim wrote:
> On Monday, 11 June 2018 at 04:02:15 UTC, Joakim wrote:
>> On Monday, 11 June 2018 at 02:58:28 UTC, makedgreatagain wrote:
>>> On Thursday, 7 June 2018 at 14:12:15 UTC, Joakim wrote:
>>>> [...]
>>>
>>> Thanks for your help.
>>>
>>> The side thing is betterC change also base on d based branch,
>>>  which is very hard to backporting to cpp branch.
>>
>> No, it only disables 4-5 things, so while you're right that it applies towards ddmd, it should be pretty easy to manually backport to the old C++ frontend. I plan to do so for the ltsmaster branch of ldc, its last C++ version, this week: you can apply that pull to Dan's ios branch or easily port it yourself.
>
> My betterC backport is up, try it on Dan's iOS branch:
>
> https://github.com/ldc-developers/ldc/pull/2748

Thanks, this is very helpful.
June 13, 2018
On Tuesday, 12 June 2018 at 04:23:51 UTC, Joakim wrote:
> On Monday, 11 June 2018 at 04:02:15 UTC, Joakim wrote:
>> On Monday, 11 June 2018 at 02:58:28 UTC, makedgreatagain wrote:
>>> On Thursday, 7 June 2018 at 14:12:15 UTC, Joakim wrote:
>>>> [...]
>>>
>>> Thanks for your help.
>>>
>>> The side thing is betterC change also base on d based branch,
>>>  which is very hard to backporting to cpp branch.
>>
>> No, it only disables 4-5 things, so while you're right that it applies towards ddmd, it should be pretty easy to manually backport to the old C++ frontend. I plan to do so for the ltsmaster branch of ldc, its last C++ version, this week: you can apply that pull to Dan's ios branch or easily port it yourself.
>
> My betterC backport is up, try it on Dan's iOS branch:
>
> https://github.com/ldc-developers/ldc/pull/2748

When I cherry pick the commit 08041422, git report the IOS branch dose not have function `getCAssertFunctionName` , `DtoCAssert`  there seems missing some old commit from  IOS branch to ltsmaster branch.  I don't know how many and how to compare to get all the missing commit to work.

Thanks for you help again.


June 13, 2018
On Wednesday, 13 June 2018 at 02:18:55 UTC, makedgreatagain wrote:
> On Tuesday, 12 June 2018 at 04:23:51 UTC, Joakim wrote:
>> On Monday, 11 June 2018 at 04:02:15 UTC, Joakim wrote:
>>> On Monday, 11 June 2018 at 02:58:28 UTC, makedgreatagain wrote:
>>>> On Thursday, 7 June 2018 at 14:12:15 UTC, Joakim wrote:
>>>>> [...]
>>>>
>>>> Thanks for your help.
>>>>
>>>> The side thing is betterC change also base on d based branch,
>>>>  which is very hard to backporting to cpp branch.
>>>
>>> No, it only disables 4-5 things, so while you're right that it applies towards ddmd, it should be pretty easy to manually backport to the old C++ frontend. I plan to do so for the ltsmaster branch of ldc, its last C++ version, this week: you can apply that pull to Dan's ios branch or easily port it yourself.
>>
>> My betterC backport is up, try it on Dan's iOS branch:
>>
>> https://github.com/ldc-developers/ldc/pull/2748
>
> When I cherry pick the commit 08041422, git report the IOS branch dose not have function `getCAssertFunctionName` , `DtoCAssert`  there seems missing some old commit from  IOS branch to ltsmaster branch.  I don't know how many and how to compare to get all the missing commit to work.
>
> Thanks for you help again.

Are you starting from the top, with the oldest commit first? Because the older commits supply those functions.

You may not want to cherry-pick if you're not used to doing it, and just apply the patch itself:

https://patch-diff.githubusercontent.com/raw/ldc-developers/ldc/pull/2748.diff
« First   ‹ Prev
1 2 3