Bug: Lua's ltests.c
doesn't compile
#1226
Labels
low severity
Used to report low severity bugs (e.g. cosmetic issues, non critical UI glitches)
What happened?
Lua can be compiled with extra API-checking support. From Lua's
makefile
:Defining
LUA_USER_H
ends up#include
ing the#define
d value:cosmopolitan/third_party/lua/lua.h
Lines 139 to 141 in 8e3b361
In this case, that's
ltests.h
.#include
ingltests.h
#define
sLUA_DEBUG
:cosmopolitan/third_party/lua/ltests.h
Line 12 in 8e3b361
That in turns causes the code in
ltests.c
to get compiled:cosmopolitan/third_party/lua/ltests.c
Lines 50 to 53 in 8e3b361
Compiling
ltests.c
produces many, many errors — mostly related to missing system-level#include
s.On the one hand, not being able to compile
lua
with this extra support probably isn't a big problem. On the other hand, it's a problem that could, maybe, be fixed with a couple of lines.Version
Cosmopolitan v3.4.0
What operating system are you seeing the problem on?
Mac
Relevant log output
The text was updated successfully, but these errors were encountered: