8000 Fix Windows builds with MSVC and Clang by alessioimprota · Pull Request #170 · KaHIP/KaHIP · GitHub
[go: up one dir, main page]

Skip to content

Fix Windows builds with MSVC and Clang - #170

Merged
schulzchristian merged 2 commits into
KaHIP:masterfrom
alessioimprota:fix/windows-build
Sep 16, 2026
Merged

schulzchristian merged 2 commits into
KaHIP:masterfrom
alessioimprota:fix/windows-build

Conversation

@alessioimprota
@alessioimprota alessioimprota commented Sep 16, 2026 •
Copy link
Copy Markdown
Contributor

Hi,

graph_io.h uses std::getline but does not include <string>, causing a compilation error with MSVC. I added the required include.

KaHIP also passes /W3 to every Windows build, including Ninja builds using clang++, which does not accept that flag. I kept NOMINMAX for all Windows builds, but applied /W3 only when MSVC is true.

Verified in a downstream CMake build on Windows with MSVC and with Ninja/clang++.

@schulzchristian
Copy link
Copy Markdown
Member

thank you!

@schulzchristian
schulzchristian merged commit 34e1d0a into KaHIP:master Sep 16, 2026
8 checks passed
@alessioimprota
alessioimprota deleted the fix/windows-build branch September 16, 2026 15:26
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

0