summary refs log tree commit diff stats
path: root/changelog.md
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-05-16 04:09:18 -0700
committerGitHub <noreply@github.com>2020-05-16 13:09:18 +0200
commitc777f2fb608e1f42daf31d314dda0050f6354acd (patch)
tree1fa2341dda9dc9da49fc5745360c81cc023d5b26 /changelog.md
parentc32e1378eb7d62d59c9e24322c282556c821030a (diff)
downloadNim-c777f2fb608e1f42daf31d314dda0050f6354acd.tar.gz
fix some issues with --backend (#14363)
* fix some issues with --backend
* fix https://github.com/timotheecour/Nim/issues/175; improve upon #14306
Diffstat (limited to 'changelog.md')
-rw-r--r--changelog.md10
1 files changed, 8 insertions, 2 deletions
diff --git a/changelog.md b/changelog.md
index a93a7e651..986186356 100644
--- a/changelog.md
+++ b/changelog.md
@@ -160,8 +160,8 @@ proc mydiv(a, b): int {.raises: [].} =
 
 - Specific warnings can now be turned into errors via `--warningAsError[X]:on|off`.
 - The `define` and `undef` pragmas have been de-deprecated.
-- New command: `nim r main.nim [args...]` which compiles and runs main.nim, saving
-  the binary to $nimcache/main$exeExt, using the same logic as `nim c -r` to
+- New command: `nim r main.nim [args...]` which compiles and runs main.nim, and implies `--usenimcache`
+  so that output is saved to $nimcache/main$exeExt, using the same logic as `nim c -r` to
   avoid recompiling when sources don't change. This is now the preferred way to
   run tests, avoiding the usual pain of clobbering your repo with binaries or
   using tricky gitignore rules on posix. Example:
@@ -178,6 +178,12 @@ proc mydiv(a, b): int {.raises: [].} =
 - new hint: `--hint:msgOrigin` will show where a compiler msg (hint|warning|error) was generated; this
   helps in particular when it's non obvious where it came from either because multiple locations generate
   the same message, or because the message involves runtime formatting.
+- new flag `--backend:js|c|cpp|objc (or -b:js etc), to change backend; can be used with any command
+  (eg nim r, doc, check etc); safe to re-assign.
+- new flag `--doccmd:cmd` to pass additional flags for runnableExamples, eg: `--doccmd:-d:foo --threads`
+  use `--doccmd:skip` to skip runnableExamples and rst test snippets.
+- new flag `--usenimcache` to output to nimcache (whatever it resolves to after all commands are processed)
+  and avoids polluting both $pwd and $projectdir. It can be used with any command.
 
 ## Tool changes