Re: core.atomic for ldc.

2021-02-03 Thread rm via Digitalmars-d-learn
It look like atomicFetchAdd a atomicFetchSub was added to ldc 8 days ago and my distro has old version. I replace core.internal.atomic with this https://raw.githubusercontent.com/ldc-developers/druntime/ldc/src/core/internal/atomic.d and now everything works. It's not even in the latest stabl

Re: core.atomic for ldc.

2021-01-31 Thread vitamin via Digitalmars-d-learn
On Monday, 1 February 2021 at 06:38:16 UTC, Basile B. wrote: On Monday, 1 February 2021 at 06:12:59 UTC, vitamin wrote: On Monday, 1 February 2021 at 05:23:52 UTC, rikki cattermole wrote: The only difference between dmd, ldc and gdc (in effect) is the backend. While druntime and Phobos will be

Re: core.atomic for ldc.

2021-01-31 Thread Basile B. via Digitalmars-d-learn
On Monday, 1 February 2021 at 06:12:59 UTC, vitamin wrote: On Monday, 1 February 2021 at 05:23:52 UTC, rikki cattermole wrote: The only difference between dmd, ldc and gdc (in effect) is the backend. While druntime and Phobos will be patched for other platform targets, over all its the same lib

Re: core.atomic for ldc.

2021-01-31 Thread vitamin via Digitalmars-d-learn
On Monday, 1 February 2021 at 05:23:52 UTC, rikki cattermole wrote: The only difference between dmd, ldc and gdc (in effect) is the backend. While druntime and Phobos will be patched for other platform targets, over all its the same library. The same goes for core.atomic. You should not need t

Re: core.atomic for ldc.

2021-01-31 Thread rikki cattermole via Digitalmars-d-learn
The only difference between dmd, ldc and gdc (in effect) is the backend. While druntime and Phobos will be patched for other platform targets, over all its the same library. The same goes for core.atomic. You should not need to know that it has been patched. If you can call it and it gives you

Re: core.atomic for ldc.

2021-01-31 Thread vitamin via Digitalmars-d-learn
On Sunday, 31 January 2021 at 12:51:57 UTC, vitamin wrote: Exists for LDC library like core.atomic? It look like that dub compile with ldc but use dmd runtime and module core.internal.atomic has version only for dmd and gdc. How to make ldc use ldc runtime?