Fork me on GitHub
#graalvm
<
2024-04-02
>
greg02:04:18

Here is a very simple example of creating uberjar and native image: https://github.com/rynkowsg/examples-clojure/tree/master/clj-deps-lein-uberjar-graalvm

greg02:04:52

@U04V15CAJ here is a list of native image params I came up looking at Babashka primarily: https://github.com/rynkowsg/examples-clojure/blob/master/clj-deps-lein-uberjar-graalvm/scripts/compile-native.bash#L20 Would you recommend any other native image options worth using?

greg03:04:21

I noticed you use --report-unsupported-elements-at-runtime but based on the description https://www.graalvm.org/22.0/reference-manual/native-image/Options/ this postpones errors from build time to runtime, so I skipped this one.

borkdude07:04:08

probably some leftover from early versions of graalvm in which this wasn't the default

greg12:04:46

is it better to report unsupported elements at runtime?

borkdude12:04:22

I would say don't worry about it until you're confronted with an issue

👍 1