Target initialization for i686-pc-mingw

Hey guys,

   LLVMInitializeX86Target();
   LLVMInitializeX86TargetMC();
   LLVMInitializeX86AsmPrinter();
   LLVMInitializeX86AsmParser();

Why doesn't this work with triple i686-pc-mingw? Says it can't find the registered target for this triple.

What is the correct target for mingw? What about visual studio?

Thanks.

Try i686-pc-mingw32. We don’t recognize -mingw as an OS. Maybe we should. There was discussion long ago, but I forgot the conclusion. It had to do with the mingw32/mingw64 split.