https://issues.dlang.org/show_bug.cgi?id=23729

RazvanN <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #5 from RazvanN <[email protected]> ---
(In reply to ryuukk_ from comment #4)
> DMD64 D Compiler v2.102.1 
> 
> Installed using the installer script on Ubuntu
> 
> The bug is only available on Linux, on Windows it compiles and runs fine

So, if I understand the issue correctly, you are trying to build a program
using your custom object.d integrated in the broader druntime? Or are you
trying to compile your app.d with -betterC and then you want to link it with
your own druntime?

Please clarify. Also, the title is misleading, where is CTFE involved?

You have provided a program that uses functions in core.atomic. This program is
going to use the import paths that you are providing. If you are using a custom
druntime, it will use that one. If the function is missing from your druntime,
then obviously is going to fail. I don't see how we can fix this.

You can compile with betterC and provide the import paths from the normal
druntime and then when you link at runtime, you can link with your custom one.
But again, this is not a bug in the compiler, it is a misconfiguration issue on
the user side.

--

Reply via email to