From 1bf21642bc966a8607b99f2cac87b3351ee25343 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Sun, 14 Jun 2020 18:04:15 +0200 Subject: Linker fix for MinGW 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 --- CMakeLists.txt | 2 +- ClazySources.cmake | 2 +- 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 -- cgit v1.2.3