Skip to content

[gklib, metis] Add support for x64-mingw-dynamic#49865

Merged
BillyONeal merged 2 commits intomicrosoft:masterfrom
bansan85:gklib-mingw
Feb 10, 2026
Merged

[gklib, metis] Add support for x64-mingw-dynamic#49865
BillyONeal merged 2 commits intomicrosoft:masterfrom
bansan85:gklib-mingw

Conversation

@bansan85
Copy link
Contributor

@bansan85 bansan85 commented Feb 7, 2026

gklib needs regex to avoid undefined symbol about regex_t for target x64-mingw-dynamic

I also noticed that metis decided if USE_GKREGEX needs to be defined. It's wrong. gklib already does it.

  • Changes comply with the maintainer guide.
  • SHA512s are updated for each updated download.
  • The "supports" clause reflects platforms that may be fixed by this new version.
  • Any fixed CI baseline entries are removed from that file.
  • Any patches that are no longer applied are deleted from the port's directory.
  • The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
  • Only one version is added to each modified port's versions file.

I don't really know when regex library is needed. So I add it only
for MinGW
# Add compiler flags.
if(MSVC)
- set(GK_COPTIONS "-DWIN32 -DMSC -D_CRT_SECURE_NO_DEPRECATE -DUSE_GKREGEX")
+ set(GK_COPTIONS "-DWIN32 -DMSC -D_CRT_SECURE_NO_DEPRECATE")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set(USE_GKREGEX ON)
+ else()
+ if(MINGW)
+ target_link_libraries(${PROJECT_NAME} PUBLIC regex)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overloading the project name and a target name does not seem like a good idea to me but it is consistent with what upstream does ( https://github.com/KarypisLab/GKlib/blob/6e7951358fd896e2abed7887196b6871aac9f2f8/CMakeLists.txt#L50C1-L50C31 ); no change requested

Copy link
Member

@BillyONeal BillyONeal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@BillyONeal BillyONeal merged commit 302f756 into microsoft:master Feb 10, 2026
15 checks passed
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.

2 participants