146
147You will want to make sure your rust major LLVM version matches your installed LLVM tooling version,
148▶otherwise it is likely you will get linker errors:
149
150```bat
· · ·
153```
154
155▶If you are compiling any proc-macros, you will get this error:
156
157```bash
· · ·
158▶error: Linker plugin based LTO is not supported together with `-C prefer-dynamic` when
159targeting Windows-like targets
160```
· · ·
170set CC=clang-cl
171set CXX=clang-cl
172▶set CFLAGS=/clang:-flto=thin /clang:-fuse-ld=lld-link
173set CXXFLAGS=/clang:-flto=thin /clang:-fuse-ld=lld-link
174REM Needed because msvc's lib.exe crashes on LLVM LTO .obj files
· · ·
173▶set CXXFLAGS=/clang:-flto=thin /clang:-fuse-ld=lld-link
174REM Needed because msvc's lib.exe crashes on LLVM LTO .obj files
175set AR=llvm-lib