summary refs log tree commit diff stats
path: root/doc/nimc.rst
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2021-08-16 00:32:12 -0700
committerGitHub <noreply@github.com>2021-08-16 09:32:12 +0200
commit1acba63cb725a0eee8f8b02f585057e030ce6295 (patch)
tree61f0cd8f16cbf400e6deb9efaccde02a04c032af /doc/nimc.rst
parentb3e077863aa6985eebab0c37785ba127b3192c80 (diff)
downloadNim-1acba63cb725a0eee8f8b02f585057e030ce6295.tar.gz
cross compilation targetting windows now supports `nim r`: `nim r -d:mingw main` (#18682)
* cross compilation targetting windows now supports `nim r`: `nim r -d:mingw main`

* quoteShell

* address comment: remove `conf.getConfigVar("nimrun.exe")`
Diffstat (limited to 'doc/nimc.rst')
-rw-r--r--doc/nimc.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/nimc.rst b/doc/nimc.rst
index ad5ecaa76..98b754729 100644
--- a/doc/nimc.rst
+++ b/doc/nimc.rst
@@ -317,6 +317,8 @@ To cross-compile for Windows from Linux or macOS using the MinGW-w64 toolchain:
 .. code:: cmd
 
   nim c -d:mingw myproject.nim
+  # `nim r` also works, running the binary via `wine` or `wine64`:
+  nim r -d:mingw --eval:'import os; echo "a" / "b"'
 
 Use `--cpu:i386`:option: or `--cpu:amd64`:option: to switch the CPU architecture.