This is like -fdata-sections, and it's not part of /O2 by default for some reason.
In the cmake build, reduces the size of clang.exe from 70,358,016 bytes to 69,982,720 bytes.
clang-format.exe goes from 3,703,296 bytes to 3,331,072 bytes.
Paths
| Differential D74573
[windows] Add /Gw to compiler flags ClosedPublic Authored by thakis on Feb 13 2020, 11:43 AM.
Details Summary This is like -fdata-sections, and it's not part of /O2 by default for some reason. In the cmake build, reduces the size of clang.exe from 70,358,016 bytes to 69,982,720 bytes. clang-format.exe goes from 3,703,296 bytes to 3,331,072 bytes.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Feb 14 2020, 11:30 AM Closed by commit rG09153ab9d267: [windows] Add /Gw to compiler flags (authored by thakis). · Explain WhyFeb 14 2020, 12:21 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 244491 llvm/cmake/modules/HandleLLVMOptions.cmake
llvm/utils/gn/build/BUILD.gn
|