8000 fix: override default C compiler to cc.exe on MSYS2 by luau-project · Pull Request #1754 · luarocks/luarocks · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: override default C compiler to cc.exe on MSYS2 #1754

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 24, 2025

Conversation

luau-project
Copy link
Contributor

Description

Fixes #1753

Changes:

  1. on each MSYS2 MinGW-w64 environment, there is a cc.exe that points to the default C compiler for the environment.
  2. the line
defaults.variables.PWD = "cd"

is meant to follow a MSYS2 patch https://github.com/msys2/MINGW-packages/blob/5fd4997c2508f0949366513f0a2dd4347f9c4e77/mingw-w64-lua-luarocks/0001-luarocks_msys2_mingw_w64.patch#L48 that fixes previous issues for them.

Note

I have opened a PR on MSYS2 msys2/MINGW-packages#23494 that fixes this issue. However, I guess that MSYS2 maintainers expect these changes to be first accepted upstream.

@hishamhm hishamhm merged commit 41a14ed into luarocks:master Feb 24, 2025
8 checks passed
@hishamhm
Copy link
Member

Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LuaRocks fails to install Lua modules written in C on MSYS2 environments which uses clang as default C compiler
3 participants
0