You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the current LuaRocks setup for CLANG64 and CLANGARM64, the default configuration has a fallback to use gcc as standard C compiler when the CC environment variable is not set. This configuration makes the building of any Lua module with parts written in C to fail, because LuaRocks tries to use gcc rather than clang.
To reproduce this issue, make sure that: 1) LuaRocks is installed; 2) CC environment variable is unset; 3) uninstall luafilesystem module if it is installed.
Once the conditions outlined above are met, run the following command in a CLANG64 shell:
luarocks install luafilesystem
Note
The same behavior should be observed for other Lua modules like luasocket and lua-cjson.
Description / Steps to reproduce the issue
In the current LuaRocks setup for CLANG64 and CLANGARM64, the default configuration has a fallback to use
gcc
as standard C compiler when theCC
environment variable is not set. This configuration makes the building of any Lua module with parts written in C to fail, because LuaRocks tries to usegcc
rather thanclang
.To reproduce this issue, make sure that: 1) LuaRocks is installed; 2)
CC
environment variable is unset; 3) uninstallluafilesystem
module if it is installed.Once the conditions outlined above are met, run the following command in a
CLANG64
shell:Note
The same behavior should be observed for other Lua modules like
luasocket
andlua-cjson
.Expected behavior
The Lua module should install normally.
Actual behavior
The building of C code fails.
Verification
Windows Version
MSYS_NT-10.0-26100
MINGW environments affected
Are you willing to submit a PR?
Yes, I have a PR prepared to fix this issue.
The text was updated successfully, but these errors were encountered: