Static ctors in wasm

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Fri Feb 16 02:08:06 UTC 2024


On 16/02/2024 2:57 PM, H. S. Teoh wrote:
> On Fri, Feb 16, 2024 at 02:28:25PM +1300, Richard (Rikki) Andrew Cattermole via Digitalmars-d wrote:
>> Start back at the basics, look at the object file dump, is ModuleInfo
>> being generated?
> 
> It's missing from the object file.
> 
> 
>> If not, have you copied ModuleInfo over?
> 
> Does it need to be defined in object.d?
> 
> 
> T

Yes.

https://github.com/dlang/dmd/blob/a952831fdb2877199c8eda07292757a0c5c29a1a/compiler/src/dmd/dmsc.d#L82


More information about the Digitalmars-d mailing list