Skip to content

Commit 8c0846c

Browse files
tylanphearwenju-he
authored andcommitted
Add 'clangSerialization' to CMakeLists (fix downstream link error).
The following link error occurs in downstream after 1bda00e: ``` ld: error: undefined symbol: clang::PCHContainerOperations::PCHContainerOperations() >>> referenced by opencl_clang.cpp >>> _deps/opencl-clang-build/CMakeFiles/common_clang.dir/opencl_clang.cpp.o:(Compile) icpx: error: linker command failed with exit code 1 (use -v to see invocation) ``` This is similar to the link error seen in https://reviews.llvm.org/D157078, which was resolved in the same way (https://reviews.llvm.org/rG36daf3532d91bb3e61d631edceea77ebb8417801). This patch just adds 'clangSerialization' to the link libraries to resolve the issue.
1 parent aa28a52 commit 8c0846c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ else()
267267
clangBasic
268268
clangFrontend
269269
clangFrontendTool
270+
clangSerialization
270271
)
271272
endif()
272273

0 commit comments

Comments
 (0)