Changes

Summary

  1. [clang-repl] Fix building with win32 dylibs (details)
  2. [LLD][MinGW] Accept joined format for --stack (details)
Commit 25a288b009f7d30b5392ea36c29570cbdcf238c3 by martin
[clang-repl] Fix building with win32 dylibs

Use `clang_target_link_libraries` to avoid duplicate libraries when
the same symbol is provided both by a static library and a larger
dylib, fixing linking with win32 dylibs. This fixes errors like
these:

    ld.lld: error: duplicate symbol: llvm::createStringError(std::__1::error_code, char const*)
    >>> defined at libLLVMSupport.a(Error.cpp.obj)
    >>> defined at libLLVM-14git.dll

This matches how other clang tools declare their dependencies.

Differential Revision: https://reviews.llvm.org/D107231
The file was modifiedclang/tools/clang-repl/CMakeLists.txt
Commit 05b025edf4aecf19634e01b0974126e53a927a50 by martin
[LLD][MinGW] Accept joined format for --stack

Postgresql uses `--stack=` in its Makefile.

Downstream issue: https://github.com/msys2/MINGW-packages/pull/9167

Reviewed By: mstorsjo

Differential Revision: https://reviews.llvm.org/D107237
The file was modifiedlld/MinGW/Options.td
The file was modifiedlld/test/MinGW/driver.test