Faster linker

Kagamin spam at here.lot
Sat Nov 10 15:50:25 UTC 2018


On Saturday, 10 November 2018 at 15:15:30 UTC, Joakim wrote:
> Why, because it's the most common distro? I've never really 
> used Debian much- I've long preferred and used Arch

AFAIK, Arch updates its ldc package often.

> OK, but how do we know to look in those packages' paths without 
> the pre-configured system gcc telling us? Try running `apt 
> search libc`: you'll come up with a ton of alternative 
> packages, with many other paths and libc files that could've 
> been used.

Only default. (glibc?)
But yeah, maintaining them might be difficult for gcc updates.

>> It may make sense to have a config section for internal linker 
>> arguments, so that if it doesn't work, cc can still be used.
>
> If you mean a config file, I think you could use ldc's 
> ldc2.conf for that. And yeah, you could have ldc switch back 
> and forth between a config for its internal lld and the 
> external C compiler.
>
> This all depends on someone putting in the work to remove that 
> current dependency on the C compiler on various platforms. I'll 
> be looking into it for the ldc package on Termux for Android, 
> you're free to do the same on any other platform.

I mean, cc would be the default, and internal linker arguments 
would be used only if internal linker was requested.


More information about the Digitalmars-d mailing list