Skip to content

Additional Windows build support#3551

Merged
igaw merged 4 commits into
linux-nvme:masterfrom
Micron-TPG-OSS:bgoing/upstream-build-windows
Jul 7, 2026
Merged

Additional Windows build support#3551
igaw merged 4 commits into
linux-nvme:masterfrom
Micron-TPG-OSS:bgoing/upstream-build-windows

Conversation

@brgoing

@brgoing brgoing commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

These changes add the rest of the build support required for Windows and adds information and a helper utility for configuring a build system on Windows.

  • Adds support for building on Windows with statically linked libraries.
  • Improves build support for running and testing builds that use shared libraries.
  • Adds build configuration for building plugins on Windows.
  • Adds readme section regarding building on Windows, as well as a utility for configuring an MSYS2 environment on Windows for building nvme-cli.

brgoing added 4 commits July 6, 2026 09:16
Enables compilation of plugins on Windows for plugins that compile
successfully.

Signed-off-by: Broc Going <bgoing@micron.com>
Adds support for statically linking required MinGW libraries when
performing a static build on Windows.

Signed-off-by: Broc Going <bgoing@micron.com>
When building with shared (dynamically linked) libraries on Windows,
copies libnvme DLL into the build directory next to nvme.exe so it can
be found at runtime without modifying PATH.  Simplifies manual and
automated testing of Windows builds.

Signed-off-by: Broc Going <bgoing@micron.com>
Adds an environment setup script for the Windows MSYS2 UCRT64 build
environment, and adds a section in the top level README.md regarding
building on Windows.

Signed-off-by: Broc Going <bgoing@micron.com>
Comment thread plugins/meson.build
'plugins/micron/micron-nvme.c',
'plugins/micron/micron-utils.c',
'plugins/micron/micron-utils-win.c'
],

@igaw igaw Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I was starting to wonder why the micron shows up in both branches... the difference is micron-utils-linux.c vs micron-utils-win.c

For now this is okay. One thing we could do in future is to add a meson.build to each plugin if this helps to make it a bit more streamlined.

@igaw
igaw merged commit a95821f into linux-nvme:master Jul 7, 2026
31 of 32 checks passed
@igaw

igaw commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Thanks!

@brgoing
brgoing deleted the bgoing/upstream-build-windows branch July 8, 2026 19:10
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