From 0138fea6b283d21c6f1fb0a612030ccc38aa5ce4 Mon Sep 17 00:00:00 2001 From: Swyter Date: Sun, 5 Jun 2022 13:59:49 +0200 Subject: [PATCH] Update the `install.html` page with the proper instructions. Fix that extra whitespace. --- doc/install.html | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/doc/install.html b/doc/install.html index 9ffa3e64..fc9b93dc 100644 --- a/doc/install.html +++ b/doc/install.html @@ -182,11 +182,11 @@ LuaJIT currently builds out-of-the box on most systems: v2.1 – - Nintendo Switch -   - NintendoSDK + NX Addon - v2.1 – - +Nintendo Switch +  +NintendoSDK + NX Addon +v2.1 – +

The codebase has compatibility defines for some more systems, but @@ -656,20 +656,17 @@ xb1build

To cross-compile for Nintendo Switch from a Windows host, -open a "Visual Studio .NET Command Prompt" (64 bit host compiler), -cd to the directory where you've unpacked the sources and run -any of the following commands, depending on the NX32 or NX64 target: +open a "Native Tools Command Prompt for VS". Either the x86 version for NX32, +or x64 for the NX64 target; this is because the pointer size of the LuaJIT host +tools (buildvm.exe) must match the one from the cross-compiled target (32 or 64 bits). +

+

+Then cd to the directory where you've unpacked the sources and run these commands:

 cd src
-nx32build
+nxbuild
 
- -
-cd src
-nx64build
-
-

Embedding LuaJIT

LuaJIT is API-compatible with Lua 5.1. If you've already embedded Lua