MrcSnm / redub

Alternative implementation of dub, speed and consistency oriented
https://code.dlang.org/packages/redub
MIT License
37 stars 8 forks source link

Target path from the command line #21

Closed 0xEAB closed 4 months ago

0xEAB commented 4 months ago

Is it possible with redub to specify a target path on the command line?

Use case: redub build --target-path="/usr/bin/app-name" So one can have a deterministic target-path – even if the project recipe changes.

Classic DUB feature request: https://github.com/dlang/dub/issues/902

MrcSnm commented 4 months ago

Isn't that feature request actually dub build --root=

I've understood what that means, and yeah, I do also agree that it should be like that :)

The only question is that It'll probably have to enter on the cache formula since, for example, in the area of the .pdb generation, the target path and name is also important for the linker, since it will create a hardcoded path on it, which also is important in the context of having debug info at hotloading.

This was actually one of the reasons on which I've created redub: being able to freely modify the name of the output name, which would also make me able to generate pdb's

MrcSnm commented 4 months ago

Implemented --targetPath and --targetName flags, while keeping it optimized for using cache on same build types :)

0xEAB commented 3 months ago

You absolutely rock :metal: