Relocate docs for Switch

This commit is contained in:
Joey Yakimowich-Payne 2018-06-19 19:23:58 +09:00
commit ed18079e8a
2 changed files with 25 additions and 10 deletions

View file

@ -170,15 +170,7 @@
- ``experimental`` is now a pragma / command line switch that can enable specific
language extensions, it is not an all-or-nothing switch anymore.
- Nintendo Switch was added as a new platform target. Simply add --os:nintendoswitch
to your usual ``nim c`` or ``nim cpp`` command. DevkitPro setup must be the same as
what is the default with their new installer
[here for Mac/Linux](https://github.com/devkitPro/pacman/releases) or
[here for Windows](https://github.com/devkitPro/installer/releases).
Environment variables are ``DEVKITPRO`` for the devkitpro path, ``SWITCH_LIBS`` for any extra
libraries required by your application (``-lLIBNAME`` or ``-LLIBPATH``), and
``SWITCH_INCLUDES`` for any extra include files (``-IINCLUDE_PATH``).
There are some directories expected to exist in a specific structure for now until I figure out a better way to specify them. They are: ``DEVKITPRO/portlibs/switch/lib``, ``DEVKITPRO/libnx/lib``,
``DEVKITPRO/portlibs/switch/include``, and ``DEVKITPRO/libnx/include``
- Nintendo Switch was added as a new platform target. See [the compiler user guide](https://nim-lang.org/docs/nimc.html)
for more info.
### Bugfixes