LDC -noruntime

David Nadlinger see at klickverbot.at
Fri Jul 6 12:42:42 PDT 2012


On Friday, 6 July 2012 at 09:38:13 UTC, Jacob Carlborg wrote:
> It will not prevent the compiler for generating calls to the 
> runtime.

It should – TypeInfo references will still be generated, though.

> So if you see calls to runtime functions you need to stub them 
> out as Alex suggested or try to find a way to avoid them. Note 
> that the compiler will link with the standard library by 
> default as well. I don't know if the -noruntime flag prevents 
> that.

This is a good point – it doesn't. Use -nodefaultlib (LDC's 
-defaultlib switch works a bit differently than DMD's in that it 
appends to a list of default libs instead of replacing, this 
should imho be fixed).

David


More information about the Digitalmars-d-learn mailing list