diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-05-06 17:14:38 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2020-05-06 18:41:24 +0200 |
commit | c64db68f0b2ff8e0f94baa583b94fd9409c77057 (patch) | |
tree | 9e0dccd5c8312b8d2d18df648f70de7f75946343 /doc/nimc.rst | |
parent | 1b2b32169a5d8089a50509136a31b5ceb3773994 (diff) | |
download | Nim-c64db68f0b2ff8e0f94baa583b94fd9409c77057.tar.gz |
added a new feature: --cc:env so that you can use any C compiler as long as it works like GCC
Diffstat (limited to 'doc/nimc.rst')
-rw-r--r-- | doc/nimc.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/nimc.rst b/doc/nimc.rst index 7fdceacf5..59289a7c8 100644 --- a/doc/nimc.rst +++ b/doc/nimc.rst @@ -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 ================= |