Reputation: 2767
Nim noobie here.
I have installed package wNim after git cloning it, then nimble install
. I can get hello world running as well as the examples.
However I noticed that every time I compile the bare minimal hello world or any of the examples, the same .nim sources are compiled too. These are from the library. Dozens of them. Same thing when I tried examples in some other libraries which I nimble-installed.
Is there a way to get nimble to install the library as a fixed binary which nim then links to when my hello world compiles? I don't mind either static or dynamic linking. But it seems odd/silly/wasteful to compile the same things each time. Obviously I'm missing something here. Is there something in nim.cfg or config.nims to control this?
Upvotes: 0
Views: 30