Tweak CMake build on Cygwin.

llvm-svn: 146725
This commit is contained in:
NAKAMURA Takumi 2011-12-16 06:21:08 +00:00
parent 1aaed909ae
commit e7a3e38c9e
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -96,7 +96,7 @@ endif()
add_llvm_unittest(ExecutionEngine/JIT ${JITTestsSources})
if(MINGW)
if(MINGW OR CYGWIN)
set_property(TARGET JITTests PROPERTY LINK_FLAGS -Wl,--export-all-symbols)
endif()