[cfe-users] Issue when clang launches "ld.lld.exe" in Windows OS through "-fuse-ld=ld.lld"

2021-05-11 Thread Ni, Ray via cfe-users
Dear clang experts, I want to build out ELF image using clang in Windows OS. But I met an issue when using "-fuse-ld=ld.lld" to ask clang launch ld.lld.exe as a linker. Somehow clang always passes additional parameter to ld.lld: "-libpath:E:\\bin\\LLVM\\lib\\clang\\12.0.0\\lib\\windows" -nologo I

[cfe-users] Shared Debug Build MSYS2 MinGW-w64 constant Link Error

2021-05-11 Thread Oliver Niebuhr via cfe-users
Hello. As Static Debug Builds only work with MSVC, I am forced to use Shared-Libs with GCC on MSYS2. The Problem is, it always Fails at this exact stage: FAILED: bin/BugpointPasses.dll cmd.exe /C "cd . && C:\Dev\msys64\mingw64\bin\g++.exe -Wa,-mbig-obj -Werror=date-time -Wall -Wextra -Wno-un