Skip to content

Invoke msvc from the luarocks installer instead of mingw-gcc #196

Open

Description

@brian6932

Is there a way to do this? I tried to install the module with luarocks, but it tries to use mingw, even though the repo has msvc scripts.

❯ luarocks install Lua-cURL --server=https://luarocks.org/dev CURL_INCDIR="$(scoop prefix curl)/include" CURL_DIR=$(scoop prefix curl)
Installing https://luarocks.org/dev/lua-curl-scm-0.rockspec


lua-curl scm-0 depends on lua >= 5.1, < 5.5 (5.4-1 provided by VM: success)
x86_64-w64-mingw32-gcc /arch:AVX512 /EHsc -c -o src/l52util.o -I~/scoop/apps/lua/current/include src/l52util.c -IC:\ProgramData\scoop\apps\curl\current/include
'x86_64-w64-mingw32-gcc' is not recognized as an internal or external command,
operable program or batch file.

Error: Build error: Failed compiling object src/l52util.o

Activity

  1. brian6932 commented on Mar 20, 2026

    @brian6932
    Author

    I have been made aware that this project uses the ancient vcproj files, which modern MSVC (msbuild.exe) doesn't work with. Microsoft in their infinite wisdom doesn't bundle the vcproj->vcxproj conversion tool (devenv.exe) with their MSVC Build Tools, and for some fucking reason, with no way to download the binary independently, only includes it with the full VS IDE...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions