errors trying to build llvm from sources using ninja on Windows 10

Hello, dear friends!
I am trying to build from sources and install llvm on windows 10. Installed all the prerequisites successfully.
Then:
git clone https://github.com/llvm/llvm-project.git
cd llvm-project
mkdir build
cd build
cmake –G Ninja -DLLVM_ENABLE_PROJECTS=clang …/llvm
ninja
The output of the last command can be found in the attached .txt file.

Could somebody help me figure out what is going on? I am absolutely new to the subject so please be understanding.
Thanks in advance!

ninja_out.txt (6.63 KB)

Hi Alex,

It looks like your MinGW toolchain doesn't provide std::mutex.

Maybe you need a newer MinGW version. You could also try building with
Visual Studio Build Tools (https://aka.ms/buildtools).

Thanks,
Hans