[all-commits] [llvm/llvm-project] 09153a: [windows] Add /Gw to compiler flags

Nico Weber via All-commits all-commits at lists.llvm.org
Fri Feb 14 12:15:21 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 09153ab9d267a86d6e9bce18d5074617de5879a5
      https://github.com/llvm/llvm-project/commit/09153ab9d267a86d6e9bce18d5074617de5879a5
  Author: Nico Weber <thakis at chromium.org>
  Date:   2020-02-14 (Fri, 14 Feb 2020)

  Changed paths:
    M llvm/cmake/modules/HandleLLVMOptions.cmake
    M llvm/utils/gn/build/BUILD.gn

  Log Message:
  -----------
  [windows] Add /Gw to compiler flags

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.

Differential Revision: https://reviews.llvm.org/D74573




More information about the All-commits mailing list