Explicitly link to clangSerialization
This is necessary to fix the below linker error on Linux with clang 8. /usr/bin/ld: CMakeFiles/include-what-you-use.dir/iwyu_driver.cc.o: undefined reference to symbol '_ZN5clang22PCHContainerOperationsC1Ev'
This commit is contained in:
parent
086a412604
commit
fe5275aa7b
|
@ -90,6 +90,16 @@ target_link_libraries(include-what-you-use
|
|||
clangSema
|
||||
clangFrontend
|
||||
clangDriver
|
||||
|
||||
# Revision [1] in clang moved PCHContainerOperations from Frontend
|
||||
# to Serialization, but this broke builds that set
|
||||
# -DBUILD_SHARED_LIBS=on. Revision [2] is a followup that works
|
||||
# around the issue by adding an explicit dependency on Serialization
|
||||
# wherever there was a dependency on Frontend. Since we depend on
|
||||
# Frontend, we need an explicit dependency on Serialization too.
|
||||
# [1] https://llvm.org/viewvc/llvm-project?view=revision&revision=348907
|
||||
# [2] https://llvm.org/viewvc/llvm-project?view=revision&revision=348915
|
||||
clangSerialization
|
||||
)
|
||||
|
||||
# Platform dependencies.
|
||||
|
|
Loading…
Reference in New Issue