summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKaushal Modi <kaushal.modi@gmail.com>2021-06-10 08:29:03 -0400
committerGitHub <noreply@github.com>2021-06-10 14:29:03 +0200
commit3481ff6172a2e11c990cc67a7fd74a2f0a2445d2 (patch)
tree92313ea8d3b6fccfb7681fb668ba40018011e15c
parent7bf0404dd86ff094ebd3d5b4a39bc4c52b442593 (diff)
downloadNim-3481ff6172a2e11c990cc67a7fd74a2f0a2445d2.tar.gz
Update nims.rst to reflect that -d:release is now allowed in config.nims (#18221)
`-d:release` and `-d:danger` started working in `config.nims` after https://github.com/nim-lang/Nim/commit/df429fa28772e077faa30dd6e3a701abf48c7669 .
-rw-r--r--doc/nims.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/nims.rst b/doc/nims.rst
index 5ae1d7baa..4141c3bdc 100644
--- a/doc/nims.rst
+++ b/doc/nims.rst
@@ -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")
 
@@ -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