1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-19 14:31:59 +00:00

Merge pull request #57450 from Pineapple/master-ltcg-embed-pck

Prevent LTCG (MSVC LTO) from removing "pck" section
This commit is contained in:
Rémi Verschelde
2022-01-31 09:47:42 +01:00
committed by GitHub

View File

@@ -140,6 +140,11 @@ 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) {