#Getting the path of installed lib
1 messages · Page 1 of 1 (latest)
If you make it with b.addSharedLibrary, you can call .getEmittedBin() on it
Like any other Compile step
The problem with getEmittedBin seems to be that it points to the cache rather then the final install path.
It should be the same file
Is there a reason you specifically want it to be in the install path?
My idea is to implement "hot reload" when its in debug mode. To do that i used options to provide the path to the executable. If its a not a constant path like zig-cache this wont work. So i assume the install path would be a safe bet.
fwiw, the Step.Compile has no idea where it will eventually be installed, it only knows where the initial compilation result will be placed (and it's always in the cache)
Sound reasonable
I wonder what would be a good way to implement such thing. I assume adding an install path or a addInstallLibFile would work, but i wonder which is best or maybe i could just avoid that all together.
i guess your best bet would be to reconstruct it? i.e do b.join(&.{b.prefix, "bin", exe.name})
the idea was to avoid such thing, but I guess I have no choice