diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-31 09:47:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-31 09:47:42 +0100 |
commit | 5b1b545a5821c1be465bd6c3af897804590b51d9 (patch) | |
tree | 4c150708c649fcd3ab5a6aeaaac28e47d5629cd4 | |
parent | 78e3e65e7c38d18128524e0822a106ac76e38800 (diff) | |
parent | e4bde938a17ee4b0f643240d71a174c63c2e263b (diff) |
Merge pull request #57450 from Pineapple/master-ltcg-embed-pck
Prevent LTCG (MSVC LTO) from removing "pck" section
-rw-r--r-- | platform/windows/godot_windows.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/windows/godot_windows.cpp b/platform/windows/godot_windows.cpp index 7819ab9a32..c4926209c7 100644 --- a/platform/windows/godot_windows.cpp +++ b/platform/windows/godot_windows.cpp @@ -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) { |