by omgmajk · 10mo ago · 0 comments
If anyone has any experience with this, please do chime in :)
Nim has good support for Clang, so it works by just switching a single flag: `nim c --cc:clang main.nim`
For zigcc - there is a wrapper package you can install with nimble: `nimble install zigcc`
Then you can use it with: `nim c --cc:clang --clang.exe=zigcc --linker.exe=zigcc main.nim`
Of course, you can save the flags in configuration files. You can look at my setup for inspiration [0].
[0] - https://codeberg.org/janAkali/grabnim/src/branch/master/conf...