-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
fix: use standard main function on MinGW #2441
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
base: v2.x
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## v2.x #2441 +/- ##
=======================================
Coverage 90.08% 90.08%
=======================================
Files 113 113
Lines 5040 5040
=======================================
Hits 4540 4540
Misses 500 500 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #2437 (comment) for some discussion
Hello there, first of all thank you for your PR. |
Fixed the conflicts so that it could be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
Description
Once you define the
CATCH_CONFIG_MAIN
definition on MinGW, it defines a non-standard main function called WinMain. This results in a lot of undefined references. This doesn't happen with other compilers.This check ensures that the standard main file is used with MinGW.
GitHub Issues
Fixes #2437