diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake --- a/llvm/cmake/modules/AddLLVM.cmake +++ b/llvm/cmake/modules/AddLLVM.cmake @@ -873,6 +873,7 @@ set(new_libs ${newer_libs}) set(newer_libs "") endwhile() + list(REMOVE_DUPLICATES static_libs) if (MSVC) set(mangling microsoft) else()