Convex-Dev / convex.cljc

Any aspect of the Convex stack, from Clojure
Apache License 2.0
53 stars 7 forks source link

Update building native images #8

Closed helins closed 2 years ago

helins commented 2 years ago

When building the native image of the runner:

Warning: Ignoring server-mode native-image argument --no-server.
[build/native/project/run:33340]    classlist:   3,912.43 ms,  0.96 GB
--initialize-at-build-time without arguments has been deprecated when not using --diagnostics-mode. With GraalVM 22.0.0 --initialize-at-build-time will only work with --diagnostics-mode for debugging purposes.
The reason for deprecation is that --initalize-at-build-time does not compose, i.e., a single library can make assumptions that the whole classpath can be safely initialized at build time; that assumption is often incorrect.