Skip to content

Commit fa1d7d6

Browse files
committed
[Clang][Cygwin] attempt to fix building shared libclang.
1 parent 173ec72 commit fa1d7d6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/include/clang-c/Platform.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ LLVM_CLANG_C_EXTERN_C_BEGIN
2222
#ifndef CINDEX_NO_EXPORTS
2323
#define CINDEX_EXPORTS
2424
#endif
25-
#ifdef _WIN32
25+
#if defined(_WIN32) || defined(__CYGWIN__)
2626
#ifdef CINDEX_EXPORTS
2727
#ifdef _CINDEX_LIB_
2828
#define CINDEX_LINKAGE __declspec(dllexport)

clang/tools/libclang/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ if(ENABLE_STATIC)
158158
endif()
159159

160160
if(ENABLE_SHARED)
161-
if(WIN32)
161+
if(WIN32 OR CYGWIN)
162162
set_target_properties(libclang
163163
PROPERTIES
164164
VERSION ${LIBCLANG_LIBRARY_VERSION}

0 commit comments

Comments
 (0)