* implements https://github.com/nim-lang/RFCs/issues/260

* added a test case
This commit is contained in:
Andreas Rumpf 2020-10-07 00:09:28 +02:00 • committed by GitHub
commit 51e3e0c7c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 49 additions and 12 deletions

View file

@ -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
-----------