Get DUB to skip linker and output object files?

kinke noone at nowhere.com
Wed Mar 18 14:56:58 UTC 2020


On Wednesday, 18 March 2020 at 11:48:53 UTC, Markus Pursche wrote:
> My first observation is that it is still trying to link 
> everything, is there any way I can disable this?

I guess by setting the targetType explicitly to `library`?

> 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?

That should improve when using dub's `--arch=x86_64-scei-ps4` 
option (which will add that as `-mtriple`, so you don't need that 
in the dub config). I guess dub currently detects the platform as 
FreeBSD and so defaults to .o for objects and no extension for 
binaries.


More information about the Digitalmars-d mailing list