diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-10-07 00:09:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-07 00:09:28 +0200 |
commit | 51e3e0c7c43e82932d9bbae2e6ccc876d29b9fab (patch) | |
tree | cadf5672a513a4d7b1fab1963f2222a27d7332b7 /doc/manual.rst | |
parent | dd862285483b402424607d5a1365d99cbd8566c7 (diff) | |
download | Nim-51e3e0c7c43e82932d9bbae2e6ccc876d29b9fab.tar.gz |
implements https://github.com/nim-lang/RFCs/issues/260 (#15505)
* implements https://github.com/nim-lang/RFCs/issues/260 * added a test case
Diffstat (limited to 'doc/manual.rst')
-rw-r--r-- | doc/manual.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/manual.rst b/doc/manual.rst index 494a009cb..7258e7775 100644 --- a/doc/manual.rst +++ b/doc/manual.rst @@ -6622,6 +6622,14 @@ with the project: has changed. One can use the ``-f`` command line option to force recompilation of the file. +Since 1.4 the `compile` pragma is also available with this syntax: + +.. code-block:: Nim + {.compile("myfile.cpp", "--custom flags here").} + +As can be seen in the example, this new variant allows for custom flags +that are passed to the C compiler when the file is recompiled. + Link pragma ----------- |