[Issue 23729] ignore custom object.d for CTFE needs
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 23 12:31:24 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23729
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |INVALID
--- Comment #5 from RazvanN <razvan.nitu1305 at gmail.com> ---
(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.
--
More information about the Digitalmars-d-bugs
mailing list