-
-
Notifications
You must be signed in to change notification settings - Fork 584
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
Statically link mingw/msvc runtime libraries on Windows #1203
Conversation
1789aae
to
54515da
Compare
Co-authored-by: David Snopek <dsnopek@gmail.com>
Alright, I've tested this with MSVC and it seems to be working! So, I'm taking it out of "draft" now :-) |
else: | ||
env.Append(CCFLAGS=["/MD"]) | ||
elif env["optimize"] == "debug" or env["optimize"] == "none": | ||
env.Append(CCFLAGS=["/Od"]) | ||
|
||
else: | ||
if env["debug_symbols"]: |
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.
Another potential sync with Godot, to add here:
# Adding dwarf-4 explicitly makes stacktraces work with clang builds,
# otherwise addr2line doesn't understand them
env.Append(CCFLAGS=["-gdwarf-4"])
But that can also go in another PR.
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.
Looks great!
This builds on PR #1082, implementing the requested review, and removing some changes that seem unrelated to the goal of the PR.
This is still a draft because I haven't yet had a chance to try the MSVC-related changes. However, this is working in my testing with mingw.
Thanks to @feiyunw for making the original PR!
Fixes #1064
Fixes #976