3 ms·
It produces standalone binaries. I'm not certain the cross compilation story is in place yet though.
by yxhuvud 10y ago
It produces standalone binaries. I'm not certain the cross compilation story is in place yet though.
- RX14 10y agoTo expand on that, it produces dynamically linked binaries so you do need libevent, libpcre, libgc etc. when you want to run crystal binaries. We hope to get the number of runtime dependencies down in the future.
- faaq 10y agoBut, Also you can try static linking :-) --link-flags="static" The output binary is bigger than dynamic linked and it would needs some dev libraries before compile.
- Turing_Machine 10y agoSure, it's going to be bigger. Not a problem, as long as it works. :-) Requiring the user to install a separate bunch of dependencies adds a huge amount of distribution friction vis-a-vis just shipping a stand-alone application bundle, especially in this day of app stores. Being able to avoid that is very important, IMO. Probably anyone reading this isn't going to be daunted by having to install some extra stuff, but for the average user it's a real pain.