diff --git a/llvm/tools/llvm-mt/CMakeLists.txt b/llvm/tools/llvm-mt/CMakeLists.txt --- a/llvm/tools/llvm-mt/CMakeLists.txt +++ b/llvm/tools/llvm-mt/CMakeLists.txt @@ -1,7 +1,12 @@ set(LLVM_LINK_COMPONENTS + # Put WindowsManifest before Support, so that their library + # dependencies will be usefully ordered. (Support will pull in zlib; + # WindowsManifest is likely to pull in libxml2, which will need + # symbols from zlib; to satisfy Unix search-once link semantics, + # we'd like libxml2 to already be on the list before zlib is added.) + WindowsManifest Option Support - WindowsManifest ) set(LLVM_TARGET_DEFINITIONS Opts.td)