1
0
Fork 0
godot/platform/windows
Rémi Verschelde 513bfe496c SCons: Add 'split_libmodules' option to workaround linker issue
The new 'split_libmodules=yes' option is useful to work around linker
command line size limitations when linking a huge number of objects.
We're currently over 64k chars when linking libmodules.a on Windows
with MinGW, which triggers issues as seen in #30892.

Even on Linux, we can also reach linker command line size limitations
by adding more custom modules.

We force this option to True for MinGW on Windows, which fixes #30892.

Additional changes to lib splitting:

- Fix linking of the split module libs with interdependent symbols,
  hacking our way into LINKCOM and SHLINKCOM to set the `--start-group`
  and `--end-group` flags.
- Fix Python 3 compatibility in `methods.split_lib()`.
- Drop seemingly obsolete condition for 'msys' on 'posix'.
- Drop the unnecessary 'split_drivers' as the drivers lib is no longer
  too big since we moved all thirdparty builds to modules.

Co-authored-by: Hein-Pieter van Braam-Stewart <hp@tmm.cx>
(cherry picked from commit c320a82213)
2020-01-06 12:52:07 +01:00
..
export Use relative path property hint for windows export icon 2019-02-03 01:31:53 +01:00
SCsub Platform: Ensure classes match their header filename 2019-02-12 16:56:25 +01:00
context_gl_windows.cpp Platform: Ensure classes match their header filename 2019-02-12 16:56:25 +01:00
context_gl_windows.h Platform: Ensure classes match their header filename 2019-02-12 16:56:25 +01:00
crash_handler_windows.cpp Check project settings live before lookup in crash handler 2019-07-03 16:31:01 +02:00
crash_handler_windows.h Platform: Ensure classes match their header filename 2019-02-12 16:56:25 +01:00
detect.py SCons: Add 'split_libmodules' option to workaround linker issue 2020-01-06 12:52:07 +01:00
godot.ico
godot.natvis Fixed & improved Visual Studio custom debugger visualization 2019-03-12 08:59:30 +01:00
godot_res.rc
godot_windows.cpp Platform: Ensure classes match their header filename 2019-02-12 16:56:25 +01:00
joypad_windows.cpp Platform: Ensure classes match their header filename 2019-02-12 16:56:25 +01:00
joypad_windows.h Platform: Ensure classes match their header filename 2019-02-12 16:56:25 +01:00
key_mapping_windows.cpp Platform: Ensure classes match their header filename 2019-02-12 16:56:25 +01:00
key_mapping_windows.h Platform: Ensure classes match their header filename 2019-02-12 16:56:25 +01:00
lang_table.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
logo.png
os_windows.cpp Add Input::get_current_cursor_shape 2019-11-12 11:10:53 +01:00
os_windows.h Add Input::get_current_cursor_shape 2019-11-12 11:10:53 +01:00
platform_config.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
platform_windows_builders.py
power_windows.cpp Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
power_windows.h Platform: Ensure classes match their header filename 2019-02-12 16:56:25 +01:00
windows_terminal_logger.cpp Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
windows_terminal_logger.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00