added a new feature: --cc:env so that you can use any C compiler as long as it works like GCC

This commit is contained in:
Andreas Rumpf 2020-05-06 17:14:38 +02:00
commit c64db68f0b
3 changed files with 31 additions and 13 deletions

View file

@ -240,6 +240,10 @@ add the ``-f`` flag to force all files to be recompiled.
The default compiler is defined at the top of ``config\nim.cfg``.
Changing this setting affects the compiler used by ``koch`` to (re)build Nim.
To use the ``CC`` environment variable, use ``nim c --cc:env myfile.nim``. To use the
``CXX`` environment variable, use ``nim cpp --cc:env myfile.nim``. ``--cc:env`` is available
since Nim version 1.4.
Cross compilation
=================