mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Prevent LTCG (MSVC LTO) from removing "pck" section
(cherry picked from commit e4bde938a1)
This commit is contained in:
committed by
Rémi Verschelde
parent
7753688f88
commit
3cae7a7df5
@@ -140,6 +140,11 @@ __declspec(dllexport) int widechar_main(int argc, wchar_t **argv) {
|
||||
|
||||
setlocale(LC_CTYPE, "");
|
||||
|
||||
#ifndef TOOLS_ENABLED
|
||||
// Workaround to prevent LTCG (MSVC LTO) from removing "pck" section
|
||||
char *dummy_guard = dummy;
|
||||
#endif
|
||||
|
||||
char **argv_utf8 = new char *[argc];
|
||||
|
||||
for (int i = 0; i < argc; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user