rules_graalvm icon indicating copy to clipboard operation
rules_graalvm copied to clipboard

Allow getting output shared libraries

Open ruwi-next opened this issue 1 year ago • 1 comments

Hi

Native image can output shared libraries along with the native native binary. These are placed in the output directory next to the binary executable, but I could not find a way of collecting these files.

I wanted to be able to detect the files that native image would output and declare those as outputs but I wasn't able to figure out that. It seems that the libraries that are produced are determined by the code written and so we cannot determine this just by inspecting the command we are invoking.

Instead I exposed an attr so the user can specify the extra files they expect to be generated. This is probably not ideal but it works for my use case.

Any feedback is appreciated.

ruwi-next avatar Dec 20 '24 10:12 ruwi-next