mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
Tweak CMake build on Cygwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146725 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -76,7 +76,7 @@ if( LLVM_ENABLE_PIC )
|
|||||||
# Xcode has -mdynamic-no-pic on by default, which overrides -fPIC. I don't
|
# 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.
|
# know how to disable this, so just force ENABLE_PIC off for now.
|
||||||
message(WARNING "-fPIC not supported with Xcode.")
|
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.
|
# On Windows all code is PIC. MinGW warns if -fPIC is used.
|
||||||
else()
|
else()
|
||||||
include(CheckCXXCompilerFlag)
|
include(CheckCXXCompilerFlag)
|
||||||
|
@@ -96,7 +96,7 @@ endif()
|
|||||||
|
|
||||||
add_llvm_unittest(ExecutionEngine/JIT ${JITTestsSources})
|
add_llvm_unittest(ExecutionEngine/JIT ${JITTestsSources})
|
||||||
|
|
||||||
if(MINGW)
|
if(MINGW OR CYGWIN)
|
||||||
set_property(TARGET JITTests PROPERTY LINK_FLAGS -Wl,--export-all-symbols)
|
set_property(TARGET JITTests PROPERTY LINK_FLAGS -Wl,--export-all-symbols)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user