Skip to content

Commit 2af06e9

Browse files
committed
hack: cygwin: allow multiple definition in c-index-test
1 parent c4b74ad commit 2af06e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/tools/c-index-test/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ else()
3131
clangIndex
3232
clangSerialization
3333
)
34+
if (CYGWIN AND LLVM_LINKER_IS_GNULD)
35+
# auto-import screwup?
36+
target_link_options(c-index-test PRIVATE LINKER:--allow-multiple-definition)
37+
endif()
3438
endif()
3539

3640
set_target_properties(c-index-test

0 commit comments

Comments
 (0)