Fix RST formatting; reword a notice about -d:release in .nims
This commit is contained in:
parent
acf4e02514
commit
9709ac2bca
1 changed files with 5 additions and 3 deletions
|
|
@ -42,9 +42,6 @@ Here are few examples of using the ``switch`` proc:
|
||||||
# command-line: --forceBuild
|
# command-line: --forceBuild
|
||||||
switch("forceBuild")
|
switch("forceBuild")
|
||||||
|
|
||||||
*Note that specifically the ``-d:release`` define cannot be set using
|
|
||||||
``switch`` in NimScripts.*
|
|
||||||
|
|
||||||
NimScripts also support ``--`` templates for convenience, which look
|
NimScripts also support ``--`` templates for convenience, which look
|
||||||
like command-line switches written as-is in the NimScript file. So the
|
like command-line switches written as-is in the NimScript file. So the
|
||||||
above example can be rewritten as:
|
above example can be rewritten as:
|
||||||
|
|
@ -54,6 +51,11 @@ above example can be rewritten as:
|
||||||
--define:foo
|
--define:foo
|
||||||
--forceBuild
|
--forceBuild
|
||||||
|
|
||||||
|
**Note**: In general, the *define* switches can also be set in
|
||||||
|
NimScripts using ``switch`` or ``--``, as shown in above
|
||||||
|
examples. Only the ``release`` define (``-d:release``) cannot be set
|
||||||
|
in NimScripts.
|
||||||
|
|
||||||
|
|
||||||
NimScript as a build tool
|
NimScript as a build tool
|
||||||
=========================
|
=========================
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue