Skip to content

Commit

Permalink
Merge pull request #57450 from Pineapple/master-ltcg-embed-pck
Browse files Browse the repository at this point in the history
Prevent LTCG (MSVC LTO) from removing "pck" section
  • Loading branch information
akien-mga authored Jan 31, 2022
2 parents 78e3e65 + e4bde93 commit 5b1b545
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions platform/windows/godot_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5b1b545

Please sign in to comment.