-fno-rtti (disable RTTI)?

David Nadlinger code at klickverbot.at
Wed May 13 16:15:20 UTC 2020


On 13 May 2020, at 13:09, kinke via digitalmars-d-ldc wrote:
> TypeInfos aren't emitted if there's no class TypeInfo in object.d. But 
> then obviously everything that depends on them doesn't work, like 
> associative arrays and GC allocations. - If a struct's TypeInfo isn't 
> used, it should be stripped by the linker.

In addition to this, there are also LDC_no_moduleinfo/LDC_no_typeinfo 
for more fine-grained control; see 
https://wiki.dlang.org/LDC-specific_language_changes#Pragmas. (I haven't 
use those myself in a while.)

  — David


More information about the digitalmars-d-ldc mailing list