dom96 / choosenim

Tool for easily installing and managing multiple versions of the Nim programming language.
BSD 3-Clause "New" or "Revised" License
679 stars 67 forks source link

How to enable incremental compilation? #259

Open aleclarson opened 3 years ago

aleclarson commented 3 years ago

I get this error when I try using --incremental:on

Error: the compiler was not built with incremental compilation features; bootstrap with -d:nimIncremental to enable

Is there something I need to do with choosenim to "bootstrap with -d:nimIncremental"? Thanks

dom96 commented 3 years ago

Choosenim doesn't allow you to pass custom flags to Nim for bootstrapping right now, so you'll need to build Nim yourself to get this feature. You can find instructions for how to do this in the Nim repo.

We can support this as a feature in choosenim, so I will keep this issue. If you want to implement it let me know, I can offer some advice :)

dom96 commented 2 years ago

This could be as simple as making choosenim 1.6.0 --compileFlag:--incremental:on (or similar) work. One thing to consider is that most of the time choosenim will download nightlies, you will need to force it to bootstrap if custom flags are passed.