This is an archive of the discontinued LLVM Phabricator instance.

[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 Timeline

thakis created this revision.Feb 13 2020, 11:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 13 2020, 11:43 AM
Herald added a subscriber: mgorny. · View Herald Transcript
thakis edited the summary of this revision. (Show Details)Feb 13 2020, 12:06 PM
thakis edited the summary of this revision. (Show Details)
rnk accepted this revision.Feb 14 2020, 11:30 AM

lgtm

This revision is now accepted and ready to land.Feb 14 2020, 11:30 AM
This revision was automatically updated to reflect the committed changes.