Repository navigation
builtin: fix mix prod and debug ucrt lib - #24498
Conversation
|
Connected to Huly®: V_0.6-22866 |
|
Or can we remove the lines? $if windows && msvc {
$if prod {
#flag ucrt.lib
} $else {
#flag ucrtd.lib
}
}As when compile with |
|
If we're sure |
|
@Ekopalypse can you please check, if that works for you? |
|
Thanks for the ping about the planned change, I don't see any problems for my private projects either, Everything that comes now assumes that what was actually meant was Yes, a change seems to be necessary, as the ucrt is currently also linked against a debug version in release mode. When using symbols However, I see another issue with the GC, the supplied gc.obj is actually linked against MSVCRTD. |
|
This bug also report in issue #24229 So, do we need two version of |
|
With the way the Windows stuff works... I'd say yes. |
|
I think you need 4 versions. Two for msvcrt and two for ucrt. |
|
Why 4 instead of 2? |
That is an option that is worth exploring, since the .o file can be compiled once and then reused, amortizing the initial slowdown. I will try it. |
Because ucrt and msvcrt are not 100% compatible. |
Just to avoid confusion, what I mean here is that it is to be built for any project and NOT just the v build. |
This PR fix a Windows/msvc issue
When execute the generated
.exe, it output nothing.This is due to a mix using of debug/non-debug of
ucrt.lib/ucrtd.lib. It will causeos.c.vfdopencrash.It may also related to issue #20923