how to set C/C++ compiler, eg: nim c --cxx:/usr/bin/g++-7 main.nim ?
Ideally something like:
nim c --cxx:/usr/bin/g++-7 main.nim nim c --c:/usr/bin/gcc-7 main.nim (both flags could be used in case nim programs requires using both c and c++ compilers)
thanks, that works! good enough although could be made more discoverable, maybe in nim --fullhelp
and here's another example on OSX for C++:
nim r -b:cpp --clang.cpp.exe=/usr/bin/clang++ main.nim
you're usually better off using a custom nim.cfg file.
sure, it depends on use cases