Skip to content

fix: build_windows.dart DLL path + add MinGW build script - #43

Merged
MatthewLM merged 2 commits into
peercoin:v5.0.0from
soosho:fix/build-windows-dll-path
Jul 15, 2026
Merged

MatthewLM merged 2 commits into
peercoin:v5.0.0from
soosho:fix/build-windows-dll-path

Conversation

@soosho

@soosho soosho commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Two changes from Windows testing:

  • Fixed DLL output path in build_windows.dart (VS puts the DLL in bin/RelWithDebInfo, not src/RelWithDebInfo)
  • Added build_windows_mingw.dart as an alternative that works without Visual Studio, just needs CMake and MinGW

Both produce a working secp256k1.dll that passes all 327 Dart tests on Windows.

@soosho soosho mentioned this pull request Jul 15, 2026
4 tasks done

@MatthewLM MatthewLM left a comment

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.

Thanks for the PR. I found one instance of a duplicated function.

There is also shared/duplicated code in the main function with build_windows.dart but I'm not concerned with that.

Comment thread coinlib/bin/build_windows_mingw.dart Outdated

final workDir = Directory.current.path;

final tmpDir = await cloneForWindowsMinGWInTmpDir();

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.

This appears identical to cloneForWindowsInTmpDir() from util.dart. Can this be used instead?

Comment thread coinlib/bin/build_windows_mingw.dart Outdated

}

Future<String> cloneForWindowsMinGWInTmpDir() async {

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.

No longer needed if cloneForWindowsInTmpDir() is used.

@MatthewLM
MatthewLM merged commit 5ed4361 into peercoin:v5.0.0 Jul 15, 2026
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