diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-12-16 06:21:08 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-12-16 06:21:08 +0000 |
commit | de0cfe81b435adf94dac2f816a9868ced2a63e4e (patch) | |
tree | 96e0a63e50b75d402f398bbbdc04371b19f14827 /cmake | |
parent | 46209476e7839319203b01b49a7af620693b0790 (diff) | |
download | llvm-de0cfe81b435adf94dac2f816a9868ced2a63e4e.tar.gz llvm-de0cfe81b435adf94dac2f816a9868ced2a63e4e.tar.bz2 llvm-de0cfe81b435adf94dac2f816a9868ced2a63e4e.tar.xz |
Tweak CMake build on Cygwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146725 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/HandleLLVMOptions.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake index 6788f8ec68..c316ab6333 100644 --- a/cmake/modules/HandleLLVMOptions.cmake +++ b/cmake/modules/HandleLLVMOptions.cmake @@ -76,7 +76,7 @@ if( LLVM_ENABLE_PIC ) # Xcode has -mdynamic-no-pic on by default, which overrides -fPIC. I don't # know how to disable this, so just force ENABLE_PIC off for now. message(WARNING "-fPIC not supported with Xcode.") - elseif( WIN32 ) + elseif( WIN32 OR CYGWIN) # On Windows all code is PIC. MinGW warns if -fPIC is used. else() include(CheckCXXCompilerFlag) |