diff options
author | Martin Storsjö <martin@martin.st> | 2021-04-21 08:35:40 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2021-04-30 10:53:40 +0300 |
commit | b11a2f2544e880602b539c85c4445468d14b63a1 (patch) | |
tree | 77abf51451a735bc157d283799294dcf6ad11f22 /llvm/lib/Support/GraphWriter.cpp | |
parent | c81ec19fba27ec308607aac2e44234eee8e190d1 (diff) | |
download | llvm-b11a2f2544e880602b539c85c4445468d14b63a1.zip llvm-b11a2f2544e880602b539c85c4445468d14b63a1.tar.gz llvm-b11a2f2544e880602b539c85c4445468d14b63a1.tar.bz2 |
[cmake] Use -ffunction-sections and -Wl,--gc-sections on MinGW targets
If compiling with GCC or linking with ld.bfd, these options have little
effect, but if built with Clang and linked with LLD, they provide a
quite notable size decrease - this shrinks an entire llvm-mingw
distribution package by 22%.
If building with BUILD_SHARED_LIBS or LLVM_BUILD_LLVM_DYLIB with LLD,
this requires a version of LLD that contains a fix for auto exporting
symbols from comdats, 2b01a417d7ccb001ccc1185ef5fdc967c9fac8d7.
Differential Revision: https://reviews.llvm.org/D101568
Diffstat (limited to 'llvm/lib/Support/GraphWriter.cpp')
0 files changed, 0 insertions, 0 deletions