Build fully static library by the compiler?

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Sun Aug 11 18:22:13 UTC 2024


On 12/08/2024 6:06 AM, Denis Feklushkin wrote:
> On Sunday, 11 August 2024 at 14:27:11 UTC, Richard (Rikki) Andrew 
> Cattermole wrote:
> 
>> This touches upon something I've been wanting for a while now, which 
>> is essentially a platform probe switch for D compilers.
>>
>> It would replace dub's platform probe file, but would aid in cases 
>> like this where you don't want to be guessing locations of files.
>>
>> But it could also offer:
>>
>> All target triples, their linker flags (with respect to shared + 
>> static builds), file paths to druntime/phobos, and if the triple is 
>> default or supported by host.
> 
> https://github.com/ldc-developers/ldc/pull/4717
> 
> Maybe this is what you need? Just need to specify correct `--conf=` path

No, that changes the configuration file location (you want to use the 
one that came with the compiler).

What I suggested was for introspecting how the compiler is configured so 
tasks like linking against druntime/phobos separately didn't involve 
guess work.


More information about the Digitalmars-d-learn mailing list