Watt-32
Watt-32 copied to clipboard
Configure Builds with Lua
This pull request has been added in a draft state for feedback purposes...
This pull request adds a Lua script that can determine and address the differences between different types of build platforms. The script is inspired by GNU Autotools but thanks to Lua is completely platform agnostic.
The script aims to address in the current build system like:
- #72
- The need to run/emulating pre-compiled binaries to configure successfully
- Makefiles being generated with the wrong platform specific commands (
rm
vsdel
) - Certain compiler flags not being available on older versions of the compiler (
-fdiagnostics-color=never
) - Single source (
configur.lua
for everyone instead ofconfigur.bat
vsconfigur.sh
)
Note: While FreeDOS has shipped Lua for some time on their bonus CD this version uses a DOS extender and could freeze if another DOS extender is started at the same time. https://github.com/Lethja/lua-watcom allows Lua to be built for real mode to avoid this problem. Luas official makefile is excellent at building non-DOS 32-bit targets.