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) 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.
Having a shared system-wide config file is useful in many Grandpa Unix scenarios, like shared shell account boxes. This is major retro nerd chic! 🐡 🧐
nim would be in /usr/local/bin on most BSDs, or /usr/pkg/bin or /opt/pkg on PkgSrc systems, etc.
getSystemConfigPath could dig harder...
seems weird to me that they are closed even though it still doesn't work.
I think you should open new issues with recipes to reproduce the problem.
I opened this issue https://github.com/nim-lang/Nim/issues/12292
I hope I provided enough relevant informations.