Avoid using -Wl,-z,defs on Cygwin.
authorYaron Keren <yaron.keren@gmail.com>
Thu, 23 Jul 2015 08:06:12 +0000 (08:06 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Thu, 23 Jul 2015 08:06:12 +0000 (08:06 +0000)
commitfe6b5aa191bf616ae13a9d01463bf6b0a5d8b19a
tree82a031b973db3e829028d7e581e31d0336f9d691
parent045195799377589cfc6d40195ca9f6db8903deb6
Avoid using -Wl,-z,defs on Cygwin.

Prior to CMAKE 2.8.4 that was covered by the WIN32 conditional but
from 2.8.4 CMAKE no longer defined WIN32 when running under Cygwin
and it needs its own test.

Patch by Martell Malone!

http://reviews.llvm.org/D11347

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242993 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/HandleLLVMOptions.cmake