]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0622: MS-Windows: mingw-build can be optimized v9.1.0622
authorKen Takata <kentkt@csc.jp>
Fri, 26 Jul 2024 16:51:20 +0000 (18:51 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 26 Jul 2024 17:07:41 +0000 (19:07 +0200)
commit032accd98b6915b5d642a2d059cc666c2c786579
tree6da16b98d01363da8f24c02d5921d892ce2dc4c8
parentb32d0a479d18512be551a3bca6366796c47d2633
patch 9.1.0622: MS-Windows: mingw-build can be optimized

Problem:  MS-Windows: mingw-build can be optimized
Solution: use --gc-sections to reduce the size of the executable
          (Ken Takata)

Use the --gc-sections linker option and the -ffunction-sections compiler
option to reduce the size of the executable files.  To make these work,
the -fno-asynchronous-unwind-tables compiler option is also needed.

This is enabled by default and can be disabled by `USE_GC_SECTIONS=no`.

Note: A similar feature has been already used in MSVC. (The /OPT linker
option.)

related: #15350

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/Make_cyg_ming.mak
src/version.c