aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2020-06-14 18:04:15 +0200
committerCristian Adam <cristian.adam@qt.io>2020-06-14 16:07:55 +0000
commit1bf21642bc966a8607b99f2cac87b3351ee25343 (patch)
treee14b14553ffdf5ebc11de35d36a3d4755f6a6157
parent85527221ebbe312d6ba644e40af8a8cf3b6b67e9 (diff)
Linker fix for MinGW1.6-based
clazy-standalone was linking to ClazyPlugin and other LLVM/Clang libraries ending having duplicated symbols. clazy-standalone will be compiled in the same way as the MSVC version Change-Id: I7264cd40a530006df1112a0d777ff4acc942325f Reviewed-by: Cristian Adam <cristian.adam@qt.io>
-rw-r--r--CMakeLists.txt2
-rw-r--r--ClazySources.cmake2
2 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a30813f8..e67f72c7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -229,7 +229,7 @@ if (NOT CLAZY_BUILD_WITH_CLANG)
# Build clazy-standalone
add_executable(clazy-standalone ${CLAZY_STANDALONE_SRCS})
- if(MSVC)
+ if(WIN32)
# On MSVC clang-standalone crashes with a meaningless backtrace if linked to ClazyPlugin.dll
target_link_libraries(clazy-standalone clangFrontend)
else()
diff --git a/ClazySources.cmake b/ClazySources.cmake
index 7969d56d..960f5b53 100644
--- a/ClazySources.cmake
+++ b/ClazySources.cmake
@@ -33,7 +33,7 @@ set(CLAZY_PLUGIN_SRCS # Sources for the plugin
${CLAZY_SHARED_SRCS}
)
-if (MSVC)
+if (WIN32)
set(CLAZY_STANDALONE_SRCS
${CLAZY_SHARED_SRCS}
${CMAKE_CURRENT_LIST_DIR}/src/ClazyStandaloneMain.cpp