OSDN Git Service

[cmake] Enable zlib support on windows
authorPavel Labath <labath@google.com>
Fri, 1 Dec 2017 11:41:07 +0000 (11:41 +0000)
committerPavel Labath <labath@google.com>
Fri, 1 Dec 2017 11:41:07 +0000 (11:41 +0000)
commit2f1bcfe57e867bfb796aeaa845fcd0c47f63aeda
tree45ee109cdbfd055ff3b128a6e035b4a6229112a7
parent8caaeced908bdf080326e1fc9de3ce5a89419bcd
[cmake] Enable zlib support on windows

Summary:
zlib support was hard-wired to off for (non-cygwin) windows targets.
This disables some features, such as reading debug info from compressed
dwarf sections.

This has been this way since zlib support was added in 2013 (r180083),
but there is no obvious reason for that. Zlib is perfectly capable of
being compiled for windows (it even has a cmake file that works out of
the box).

This enables one to turn on zlib support on windows, if one has zlib
avaliable.

Reviewers: rnk, beanz

Subscribers: mgorny, aprantl, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319533 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/config-ix.cmake
lib/Support/CMakeLists.txt