Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Windows, build the C code in release mode always. #400

Merged
merged 1 commit into from
May 16, 2020

Conversation

retep998
Copy link
Contributor

@retep998 retep998 commented Apr 3, 2019

Rust always uses the release CRT, even in debug mode, so the C code should do the same.

Fixes #357

dherman added a commit that referenced this pull request May 15, 2020
dherman added a commit that referenced this pull request May 15, 2020
Rust always uses the release CRT, even in debug mode, so the C code should do the same.
@retep998
Copy link
Contributor Author

retep998 commented May 16, 2020

I updated this PR to now still build the C code in debug mode, but I've tried my best to convince gyp to tell the C compiler to use the release CRT. The .node binaries produced by cargo test all use vcruntime140.dll and not vcruntime140d.dll so it looks like it is working.

Copy link
Collaborator

@dherman dherman left a comment

Choose a reason for hiding this comment

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

Looks great, and I like how moving it to binding.gyp avoids polluting any of the Rust build scripts. :shipit:

@dherman dherman merged commit 0271c62 into neon-bindings:master May 16, 2020
@dherman
Copy link
Collaborator

dherman commented May 16, 2020

Thanks as always for helping us with the intricacies of building on Windows, @retep998, and again, my bad for overlooking this PR before. 🙏

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.

error: Neon only builds with --release. For tests, try cargo test --release.
2 participants