Fork me on GitHub
#graalvm
<
2019-06-15
>
borkdude06:06:01

You mean cross compilation?

sogaiu11:06:23

no, the desired effect is to have a different filename result when run on a different os. e.g. if i build on macos, i want bin-name.macos, on windows i want bin-name.exe, etc. i guess i can just rename the output when done along with moving it to the desired directory. i am aiming for the effect of a single cloning of a repository (in combination with git lfs) to result in no additional downloads or builds being necessary in order to use the result - at least for various linuxen, macos, and windows.

borkdude11:06:38

Isn’t that just the —name arg?

sogaiu11:06:45

hmm...i grepped the output of native-image --help, but i don't see --name...

sogaiu11:06:05

ah you mean -H:Name=?

👍 4
sogaiu11:06:21

just tried it and that works, thanks @borkdude

borkdude11:06:06

yes, that one

borkdude11:06:20

sorry, I was on mobile, I had to guess a bit

sogaiu11:06:49

thanks for the guess, it was helpful -- now if i didn't have to make 3 different aliases in deps.edn 🙂

sogaiu20:06:22

fwiw, although specifying a path with -H:Name worked, there also appears to be -H:Path=FileSystemPath -- via: https://github.com/oracle/graal/blob/befc159f4898e81648f4ec499c4fe8e9659a5f9f/substratevm/OPTIONS.md