CLang built with mingw-w64 for Windows reports "posix" as threading model

Hi,

Simple issue really: CLang built with mingw-w64 (x64) reports “posix” as threading model. I have libpthread installed where my mingw-w64 toolchain can find it, but it shouldn’t be used on Windows I think.

It might also just be a visual problem only, with only the wrong text showing.

I built with CMake using MinGW Makefiles. I couldn’t find any relevant information except that threading was enabled automatically.

Thanks!

Ruben

Ruben Van Boxem <vanboxem.ruben@gmail.com>
writes:

Simple issue really: CLang built with mingw-w64 (x64) reports "posix" as
threading model. I have libpthread installed where my mingw-w64 toolchain
can find it, but it shouldn't be used on Windows I think.

It might also just be a visual problem only, with only the wrong text
showing.

I built with CMake using MinGW Makefiles. I couldn't find any relevant
information except that threading was enabled automatically.

I think it is unrelated to the build system. Maybe this from
lib/Driver/Driver.cpp:

void Driver::PrintVersion(const Compilation &C, llvm::raw_ostream &OS) const {
[snip]
  // Print the threading model.
  //
  // FIXME: Implement correctly.
  OS << "Thread model: " << "posix" << '\n';
}