Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added explicit use of lld and llvm-ar to msys2 github workflow
The clangx64ninja build test env explicitly specified only the clang/++ compiler env.vars (CC, CXX, OBJC, OBJCXX), which leaves meson to guess at what static & dynamic linkers to use. Unfortunately, it can decide to go for the gnu 'ld.bfd' linker, which might sometimes be compatible with clang-compiled objects but is not compatible with clang's LTO byte- code output. Now we explictly use all llvm-based tools by adding - - ..._LD=ld.lld - AR=llvm-ar Tried and failed using `..._LD=ld.lld`. Meson seems to use the _LD linker env.var value to directly invoke - `clang -Wl,--version -fuse-ld=ld.lld` which doesn't work; needs to be 'lld' (`..._LD=lld`) it seems.
- Loading branch information