[PATCH] D126291: [flang][Driver] Update link job on windows

Martin Storsjö via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 3 06:38:26 PDT 2022


mstorsjo added a comment.

In D126291#3555805 <https://reviews.llvm.org/D126291#3555805>, @awarzynski wrote:

> Like @rovka pointed out, skipping `CLANG_DEFAULT_RTLIB` should solve your issue with missing libs

Skipping that woulnd't help/work in the clang64 environment in msys2; there's no libgcc there but it's expected to use compiler-rt in general.

The preexisting systemwide corresponding files do exist in `/clang64/lib/clang/14.0.0`, but your toolchain would want similar ones in `<yourtoolchain>/lib/clang/15.0.0`. For testing, just copy over the clang/<version>/lib directory to your testroot.

Adding compiler-rt to `LLVM_ENABLE_RUNTIMES` might fix it properly, but at least personally, I build compiler-rt in a separate step afterwards (and I think msys2 builds it in that way too).


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126291/new/

https://reviews.llvm.org/D126291



More information about the cfe-commits mailing list