Hi, I have come to explore Nim language after years when it reached 1.0.

How do I change C compiler globally?

I have tried creating `/etc/nim/nim.cfg` file as per documentation 
([https://nim-lang.github.io/Nim/nimc.html#compiler-usage-configuration-files](https://nim-lang.github.io/Nim/nimc.html#compiler-usage-configuration-files))
 and ensured it is readable for all with content: `cc = clang`.

Clang is however only used when I change directly 
`~/.choosenim/toolchains/nim-1.0.0/config/nim.cfg` which I don't want to do 
because (as far as I understood) this is only for specific version of Nim 
besides I don't really want to interfere with toolchain manager.

I am sorry as I realise this is noobie question but I couldn't find any 
satisfactory answer.

Reply via email to