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")`
This commit is contained in:
parent
b3e077863a
commit
1acba63cb7
3 changed files with 20 additions and 5 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue