Remove env vars from docs
This commit is contained in:
parent
ab840f445e
commit
d3c2fb22db
1 changed files with 4 additions and 8 deletions
12
doc/nimc.rst
12
doc/nimc.rst
|
|
@ -232,12 +232,12 @@ Cross compilation for Nintendo Switch
|
||||||
=====================================
|
=====================================
|
||||||
|
|
||||||
Simply add --os:nintendoswitch
|
Simply add --os:nintendoswitch
|
||||||
to your usual ``nim c`` or ``nim cpp`` command and set the ``SWITCH_LIBS``
|
to your usual ``nim c`` or ``nim cpp`` command and set the ``passC``
|
||||||
and ``SWITCH_INCLUDES`` environment variables to something like:
|
and ``passL`` command line switches to something like:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
export SWITCH_INCLUDES="-I$DEVKITPRO/libnx/include"
|
nim c ... --passC="-I$DEVKITPRO/libnx/include" ...
|
||||||
export SWITCH_LIBS="-specs=$DEVKITPRO/libnx/switch.specs -L$DEVKITPRO/libnx/lib -lnx"
|
--passL="-specs=$DEVKITPRO/libnx/switch.specs -L$DEVKITPRO/libnx/lib -lnx"
|
||||||
|
|
||||||
or setup a nim.cfg file like so:
|
or setup a nim.cfg file like so:
|
||||||
|
|
||||||
|
|
@ -259,10 +259,6 @@ an nro file with the ``elf2nro`` tool in the DevkitPro release. Examples can be
|
||||||
`the nim-libnx github repo <https://github.com/jyapayne/nim-libnx.git>`_ or you can use
|
`the nim-libnx github repo <https://github.com/jyapayne/nim-libnx.git>`_ or you can use
|
||||||
`the switch builder tool <https://github.com/jyapayne/switch-builder.git>`_.
|
`the switch builder tool <https://github.com/jyapayne/switch-builder.git>`_.
|
||||||
|
|
||||||
Environment variables are:
|
|
||||||
- ``SWITCH_LIBS`` for any extra libraries required by your application (``-lLIBNAME`` or ``-LLIBPATH``)
|
|
||||||
- ``SWITCH_INCLUDES`` for any extra include files (``-IINCLUDE_PATH``)
|
|
||||||
|
|
||||||
There are a few things that don't work because the DevkitPro libraries don't support them.
|
There are a few things that don't work because the DevkitPro libraries don't support them.
|
||||||
They are:
|
They are:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue