Get DUB to skip linker and output object files?

Sönke Ludwig sludwig+d at outerproduct.org
Wed Mar 18 14:46:38 UTC 2020


Am 18.03.2020 um 12:48 schrieb Markus Pursche:
> Hi, we are experimenting with cross-compiling from Windows to PS4, we 
> have figured out how to compile (using LDC with -betterC) individual .d 
> files into object files (.o), which I can then link using the PS4 SDK 
> into a .elf and it all runs.
> 
> I would very much like to integrate the first part of that toolchain 
> with Dub since it would make testing different -betterC enabled 
> libraries for ABI compatibility easier.
> 
> Here is my dub.json
> 
> https://pastebin.com/s7XexRBD
> 
> However, this is my output when running dub build -v
> 
> https://pastebin.com/TyLi5sid
> 
> My first observation is that it is still trying to link everything, is 
> there any way I can disable this?
> 
> The second thing is that it assumes .obj and .exe files instead of .o 
> and .elf, should I perhaps change the target platform according to DUB 
> as well? Would that pass another triple to LDC?

There is an open PR for this: https://github.com/dlang/dub/pull/1792


More information about the Digitalmars-d mailing list