dom96 / choosenim

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

I already have a c compiler #237

Closed AmjadHD closed 4 years ago

AmjadHD commented 4 years ago

today i downloaded choosenim 0.7.2 on Windows 10 and ran the runme.bat script, and it started to download mingw, I already have msvc installed, I don't want it to install mingw, maybe ask the user before downloading a c compiler ?

dom96 commented 4 years ago

A C compiler is a dependency for Nim. Nim cannot function without it. What's the issue with downloading it?

FWIW choosenim only downloads MINGW if there is no gcc in your PATH. MSVC might work, but in general it's better to get a known set of dependencies before installing Nim. Choosenim is about getting a working installation, not about supporting every possible configuration.

If you want to take a look at how choosenim determines whether to install MINGW: https://github.com/dom96/choosenim/blob/master/src/choosenimpkg/switcher.nim#L58