[cfe-dev] CLang built with mingw-w64 for Windows reports "posix" as threading model

Óscar Fuentes ofv at wanadoo.es
Fri Feb 25 12:44:05 PST 2011


Ruben Van Boxem <vanboxem.ruben at 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';
}




More information about the cfe-dev mailing list