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

Nico Weber via All-commits all-commits at lists.llvm.org
Wed Feb 19 23:51:18 PST 2020


  Branch: refs/heads/release/10.x
  Home:   https://github.com/llvm/llvm-project
  Commit: f004359106cfda578733dff1380560b68f9c3713
      https://github.com/llvm/llvm-project/commit/f004359106cfda578733dff1380560b68f9c3713
  Author: Nico Weber <thakis at chromium.org>
  Date:   2020-02-20 (Thu, 20 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

(cherry picked from commit 09153ab9d267a86d6e9bce18d5074617de5879a5)




More information about the All-commits mailing list