Watt-32 icon indicating copy to clipboard operation
Watt-32 copied to clipboard

Configure Builds with Lua

Open Lethja opened this issue 3 months ago • 8 comments

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 vs del)
  • Certain compiler flags not being available on older versions of the compiler (-fdiagnostics-color=never)
  • Single source (configur.lua for everyone instead of configur.bat vs configur.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.

Lethja avatar Apr 07 '24 01:04 Lethja