From 9b4e2aa71d8e869d4b3b1b5be4950f33dfc06a51 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Wed, 6 Jan 2021 10:08:12 +0100 Subject: [PATCH] cmake build: Avoid other LLVM libraries interfering with ClangFormat plugin Make the static LLVM in ClangFormat really internal to the ClangFormat plugin on Linux by not exporting symbols from it. This was missed during the conversion of the qmake project to CMake. Fixes: QTCREATORBUG-24998 Change-Id: If483f3c45d5cf7f63e7b8dde58efab6371414bdd Reviewed-by: Cristian Adam --- src/plugins/clangformat/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/clangformat/CMakeLists.txt b/src/plugins/clangformat/CMakeLists.txt index 641343239cb..937e26c1bff 100644 --- a/src/plugins/clangformat/CMakeLists.txt +++ b/src/plugins/clangformat/CMakeLists.txt @@ -13,3 +13,8 @@ add_qtc_plugin(ClangFormat clangformatsettings.cpp clangformatsettings.h clangformatutils.cpp clangformatutils.h ) + +extend_qtc_plugin(ClangFormat + CONDITION UNIX AND NOT APPLE + PROPERTIES LINK_FLAGS "-Wl,--exclude-libs,ALL" +)