diff --git a/doc/changes.html b/doc/changes.html index 16cda402..c733e5d1 100644 --- a/doc/changes.html +++ b/doc/changes.html @@ -55,9 +55,9 @@ to see whether newer versions are available.
-LuaJIT currently builds out-of-the box on all popular x86 systems -(Linux, Windows, OSX etc.). It builds and runs fine as a 32 bit -application under x64-based systems, too. -
--The x64 port of LuaJIT is still preliminary and not enabled by default. -It only builds on Linux/x64 and Windows/x64 right now. If you want to -give it a try, please follow the special build instructions below. +LuaJIT currently builds out-of-the box on all popular x86 or x64 systems +(Linux, Windows, OSX etc.).
Depending on your distribution, you may need to install a package for GCC (GCC 3.4 or later required), the development headers and/or a -complete SDK. -
--E.g. on a current Debian/Ubuntu, install libc6-dev -with the package manager. Currently LuaJIT builds as a 32 bit -application by default, so you actually need to install libc6-dev-i386 -when building on an x64 OS. +complete SDK. E.g. on a current Debian/Ubuntu, install libc6-dev +with the package manager.
Download the current source package (pick the .tar.gz), if you haven't @@ -111,14 +100,9 @@ which is probably the default on your system, anyway. Simply run:
make-
-You can force a native x64 build on Linux/x64 with the following command: +This always builds a native x86 or x64 binary, depending on your OS.
--make CC="gcc -m64" --
By default modules are only searched under the prefix /usr/local. You can add an extra prefix to the search paths by appending the @@ -203,14 +187,12 @@ Open a "Windows SDK Command Shell" and select the x86 compiler:
setenv /release /x86-
Or select the x64 compiler:
setenv /release /x64-
Then cd to the directory where you've unpacked the sources and run these commands: @@ -254,6 +236,53 @@ absolute path names — all modules are loaded relative to the directory where luajit.exe is installed (see src/luaconf.h).
+ ++The build system has limited support for cross-compilation. For details +check the comments in src/Makefile. Here are some popular examples: +
++You can cross-compile to a 32 bit binary on a multilib x64 OS by +installing the multilib development pacakges (e.g. libc6-dev-i386 +on Debian/Ubuntu) and running: +
++make CC="gcc -m32" ++
+You can cross-compile for a Windows target on Debian/Ubuntu by +installing the mingw32 package and running: +
++make CC="gcc -m32" CROSS=i586-mingw32msvc- TARGET_SYS=Windows ++ +
+LuaJIT is API-compatible with Lua 5.1. If you've already embedded Lua +into your application, you probably don't need to do anything to switch +to LuaJIT, except link with a different library. Additional hints: +
++64 bit applications on OSX must be linked with these options +(only the main executable): +
++-pagezero_size 10000 -image_base 100000000 +
LuaJIT offers more performance, at the expense of portability. It -currently runs on all popular operating systems based on x86 CPUs -(Linux, Windows, OSX etc.). A preliminary port to Linux/x64 and Windows/x64 -is already available (follow the build instructions -to enable it). +currently runs on all popular operating systems based on +x86 or x64 CPUs (Linux, Windows, OSX etc.). Other platforms will be supported in the future, based on user demand and sponsoring.
diff --git a/doc/status.html b/doc/status.html index 2d750ee1..c4d9170f 100644 --- a/doc/status.html +++ b/doc/status.html @@ -53,10 +53,8 @@ page. LuaJIT 2.0 is the currently active development branch. It has Beta Test status and is still undergoing -substantial changes. It's expected to quickly mature within the next -months. You should definitely start to evaluate it for new projects -right now. But deploying it in production environments is not yet -recommended. +substantial changes. It's maturing quickly, so you should definitely +start to evaluate it for new projects right now.