Skip to content

Switched LuaJIT to source build on Windows#280

Merged
Causeless merged 1 commit into
cortex-command-community:developmentfrom
Madreag:pr/luajit-windows-source-build
May 28, 2026
Merged

Switched LuaJIT to source build on Windows#280
Causeless merged 1 commit into
cortex-command-community:developmentfrom
Madreag:pr/luajit-windows-source-build

Conversation

@Madreag
Copy link
Copy Markdown
Contributor

@Madreag Madreag commented May 28, 2026

Follow-up to #279 (the LuaJIT WohlSoft fork switch).

Drops the committed _Bin/luajit-*.lib prebuilts (unknown vintage + build flags) and wires external/sources/LuaJIT-2.1/libluajit.vcxproj into RTEA.sln via a ProjectReference, so MSBuild source-builds LuaJIT every build (same path Linux + macOS already use through Meson).

RTEA → libluajit config mapping: Debug FullDebug, Debug Minimal / Debug Release / ProfilingRelWithDebInfo, FinalRelease.

Also drops the now-dead prebuilt-fallback branch from LuaJIT's meson.build, removes the vestigial use_prebuilt_libraries option, and prepends . to PATH in msvc-prebuild.bat + msvc-postbuild.bat so minilua and buildvm work under NoDefaultCurrentDirectoryInExePath=1. .gitignore widened from _Bin/libluajit* to also catch _Bin/luajit-*.

Built clean on Windows MSBuild (Final / Debug Full / Debug Minimal / Debug Release, x64) and Linux Meson via WSL2. Vanilla game launches and reaches the main menu with the full mod stack.

Wires libluajit.vcxproj into RTEA.sln + adds a ProjectReference from
RTEA so MSBuild source-builds LuaJIT every build, matching the
Linux/macOS Meson flow. The committed _Bin/luajit-*.lib prebuilts
(unknown vintage + build flags) go away.

RTEA -> libluajit config mapping: Debug Full -> Debug, Debug Minimal
/ Debug Release / Profiling -> RelWithDebInfo, Final -> Release.

Also drops the prebuilt-fallback branch in LuaJIT's meson.build,
removes the now-vestigial use_prebuilt_libraries option, prepends '.'
to PATH in msvc-pre/postbuild.bat (so minilua + buildvm work under
NoDefaultCurrentDirectoryInExePath=1), and adds _Bin/luajit-* to
.gitignore (was only catching _Bin/libluajit*).

Verified: Windows MSBuild Final/Debug Full/Debug Minimal/Debug Release
all x64 build clean; LuaJIT subproject Meson source-build on Linux
clean; vanilla CC launches + reaches main menu with full mod stack.
@Causeless Causeless added this pull request to the merge queue May 28, 2026
Merged via the queue into cortex-command-community:development with commit 20dfb3e May 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants