From: NAKAMURA Takumi Date: Sat, 14 May 2016 08:12:37 +0000 (+0000) Subject: MSVCToolChain.cpp: Make version.dll generic for win32. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d007591ae4d251101a3491d032c0cb436c9ce7b8;p=clang MSVCToolChain.cpp: Make version.dll generic for win32. We may consider msvc features may be capable on mingw host, if it can. Consider --host=mingw --target=msvc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269557 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/CMakeLists.txt b/lib/Driver/CMakeLists.txt index fa0430e211..5b8422ed55 100644 --- a/lib/Driver/CMakeLists.txt +++ b/lib/Driver/CMakeLists.txt @@ -3,6 +3,11 @@ set(LLVM_LINK_COMPONENTS Support ) +if(WIN32) + # MSVCToolChain.cpp uses version.dll. + set(system_libs version) +endif() + add_clang_library(clangDriver Action.cpp Compilation.cpp @@ -26,4 +31,5 @@ add_clang_library(clangDriver LINK_LIBS clangBasic + ${system_libs} ) diff --git a/lib/Driver/MSVCToolChain.cpp b/lib/Driver/MSVCToolChain.cpp index 3d822d1efd..a80ad60cc1 100644 --- a/lib/Driver/MSVCToolChain.cpp +++ b/lib/Driver/MSVCToolChain.cpp @@ -38,8 +38,6 @@ #define NOMINMAX #endif #include - - #pragma comment(lib, "version.lib") #endif using namespace clang::driver;