Skip to content

Commit

Permalink
Update nims.rst to reflect that -d:release is now allowed in config.n…
Browse files Browse the repository at this point in the history
…ims (nim-lang#18221)

`-d:release` and `-d:danger` started working in `config.nims` after nim-lang@df429fa .
  • Loading branch information
kaushalmodi authored Jun 10, 2021
1 parent 7bf0404 commit 3481ff6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/nims.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ Here are few examples of using the `switch` proc:
.. code-block:: nim
# command-line: --opt:size
switch("opt", "size")
# command-line: --define:foo or -d:foo
switch("define", "foo")
# command-line: --define:release or -d:release
switch("define", "release")
# command-line: --forceBuild
switch("forceBuild")
Expand All @@ -132,13 +132,13 @@ above example can be rewritten as:

.. code-block:: nim
--opt:size
--define:foo
--define:release
--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`:option:) cannot be set
in NimScripts.
NimScripts using `switch` or `--`, as shown in above examples. Few
`define` switches such as `-d:strip`:option:, `-d:lto`:option: and
`-d:lto_incremental`:option: cannot be set in NimScripts.


NimScript as a build tool
Expand Down

0 comments on commit 3481ff6

Please sign in to comment.