tools-build

j4m3s 2024-05-14T14:32:13.184239Z

Hey there! Is there a way to do :aot :all like in lein with tools.build ? To precompile clj files in classes to use them in a graalvm build ~

Alex Miller (Clojure team) 2024-05-14T15:13:38.722469Z

no, you need to list all the entry-point namespaces in :ns-compile - and if something is not loaded by your entry points, why do you care? but you could use tools.namespace to grab all the namespaces if needed

Alex Miller (Clojure team) 2024-05-14T15:14:00.840169Z

tools.build depends on it, so your build process already has it in deps

j4m3s 2024-05-14T15:16:13.411199Z

Well, I'm having some issues where some classes are not found in the final binary from graalvm (notably some core clojure ones for now), and from what I see in my standalone jar, those ones are not compiled (only available as .clj files). I wanted to see if I could fix it in my build usage with tools.build

j4m3s 2024-05-14T15:16:45.924379Z

But if compile-clj is supposed to compile them, shouldn't the clojure core be compiled as well since it's implicitly required (afaiu) ?

2024-05-14T15:42:57.678269Z

clojure.core is aot compiled in its jar already

2024-05-14T15:44:25.366269Z

I would suggest asking about tooling use in #graalvm

j4m3s 2024-05-14T15:46:19.585069Z

Yeah I think that's best since I'm getting confused about things. Thanks for your help though, much appreciated 🙂