4 ms·
It's usually code compiled with Mingw that gets AV false-positives in Nim. But, indeed, you can use clang or zigcc compilers instead. Nim has good support for
by archargelod 9mo ago
It's usually code compiled with Mingw that gets AV false-positives in Nim. But, indeed, you can use clang or zigcc compilers instead.
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/config.nims https://codeberg.org/janAkali/grabnim/src/branch/master/conf...