Skip to content

Commit a6c0120

Browse files
authored
Try fix PR
1 parent bc01b24 commit a6c0120

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/CppInterOp/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,14 @@ string(REPLACE ";" "\;" _VER CPPINTEROP_VERSION)
146146
set_source_files_properties(CppInterOp.cpp PROPERTIES COMPILE_DEFINITIONS
147147
"LLVM_BINARY_DIR=\"${LLVM_BINARY_DIR}\";CPPINTEROP_VERSION=\"${_VAR}\""
148148
)
149+
150+
if(MSVC)
151+
target_link_options(clangCppInterOp PRIVATE
152+
"/INCLUDE:?write@raw_ostream@llvm@@QEAAAEAV12@PEBD_K@Z"
153+
"/INCLUDE:?errs@llvm@@YAAEAVraw_fd_ostream@1@XZ"
154+
"/INCLUDE:?DestroyDataAndMakeUninit@APValue@clang@@AEAAXXZ"
155+
"/INCLUDE:?dbgs@llvm@@YAAEAVraw_ostream@1@XZ"
156+
"/INCLUDE:?fatalUncheckedError@Error@llvm@@AEBAXXZ"
157+
"/INCLUDE:?logAllUnhandledErrors@llvm@@YAXVError@1@AEAVraw_ostream@1@VTwine@1@@Z"
158+
)
159+
endif()

0 commit comments

Comments
 (0)