Skip to content

Fix MinGW build failure due to incorrect /STACK flag#3046

Open
amyssnippet wants to merge 1 commit intogoogle-deepmind:mainfrom
amyssnippet:fix/3040
Open

Fix MinGW build failure due to incorrect /STACK flag#3046
amyssnippet wants to merge 1 commit intogoogle-deepmind:mainfrom
amyssnippet:fix/3040

Conversation

@amyssnippet
Copy link

Fixes #3040.

The build was failing on MinGW because the linker was receiving the MSVC-style /STACK flag, which is treated as a file path by ld. this pr:

  1. Explicitly detects MinGW (GNU compiler on Windows).
  2. Applies the correct GCC linker flag -Wl,--stack,16777216 when building with MinGW.
  3. Preserves the existing /STACK flag for MSVC.

@amyssnippet
Copy link
Author

@saran-t kindly review this

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.

Linking mujoco with MinGW fails because of non-recognized stack flag

1 participant