71 const char *regKey; |
71 const char *regKey; |
72 const char *executable; |
72 const char *executable; |
73 } compiler_info[] = { |
73 } compiler_info[] = { |
74 // The compilers here are sorted in a reversed-preferred order |
74 // The compilers here are sorted in a reversed-preferred order |
75 {CC_BORLAND, "Borland C++", 0, "bcc32.exe"}, |
75 {CC_BORLAND, "Borland C++", 0, "bcc32.exe"}, |
76 {CC_MINGW, "MinGW (Minimalist GNU for Windows)", 0, "mingw32-gcc.exe"}, |
76 {CC_MINGW, "MinGW (Minimalist GNU for Windows)", 0, "g++.exe"}, |
77 {CC_INTEL, "Intel(R) C++ Compiler for 32-bit applications", 0, "icl.exe"}, // xilink.exe, xilink5.exe, xilink6.exe, xilib.exe |
77 {CC_INTEL, "Intel(R) C++ Compiler for 32-bit applications", 0, "icl.exe"}, // xilink.exe, xilink5.exe, xilink6.exe, xilib.exe |
78 {CC_MSVC6, "Microsoft (R) 32-bit C/C++ Optimizing Compiler (6.x)", "Software\\Microsoft\\VisualStudio\\6.0\\Setup\\Microsoft Visual C++\\ProductDir", "cl.exe"}, // link.exe, lib.exe |
78 {CC_MSVC6, "Microsoft (R) 32-bit C/C++ Optimizing Compiler (6.x)", "Software\\Microsoft\\VisualStudio\\6.0\\Setup\\Microsoft Visual C++\\ProductDir", "cl.exe"}, // link.exe, lib.exe |
79 {CC_NET2002, "Microsoft (R) 32-bit C/C++ Optimizing Compiler.NET 2002 (7.0)", "Software\\Microsoft\\VisualStudio\\7.0\\Setup\\VC\\ProductDir", "cl.exe"}, // link.exe, lib.exe |
79 {CC_NET2002, "Microsoft (R) 32-bit C/C++ Optimizing Compiler.NET 2002 (7.0)", "Software\\Microsoft\\VisualStudio\\7.0\\Setup\\VC\\ProductDir", "cl.exe"}, // link.exe, lib.exe |
80 {CC_NET2003, "Microsoft (R) 32-bit C/C++ Optimizing Compiler.NET 2003 (7.1)", "Software\\Microsoft\\VisualStudio\\7.1\\Setup\\VC\\ProductDir", "cl.exe"}, // link.exe, lib.exe |
80 {CC_NET2003, "Microsoft (R) 32-bit C/C++ Optimizing Compiler.NET 2003 (7.1)", "Software\\Microsoft\\VisualStudio\\7.1\\Setup\\VC\\ProductDir", "cl.exe"}, // link.exe, lib.exe |
81 {CC_NET2005, "Microsoft (R) 32-bit C/C++ Optimizing Compiler.NET 2005 (8.0)", "Software\\Microsoft\\VisualStudio\\SxS\\VC7\\8.0", "cl.exe"}, // link.exe, lib.exe |
81 {CC_NET2005, "Microsoft (R) 32-bit C/C++ Optimizing Compiler.NET 2005 (8.0)", "Software\\Microsoft\\VisualStudio\\SxS\\VC7\\8.0", "cl.exe"}, // link.exe, lib.exe |
82 {CC_NET2008, "Microsoft (R) 32-bit C/C++ Optimizing Compiler.NET 2008 (9.0)", "Software\\Microsoft\\VisualStudio\\SxS\\VC7\\9.0", "cl.exe"}, // link.exe, lib.exe |
82 {CC_NET2008, "Microsoft (R) 32-bit C/C++ Optimizing Compiler.NET 2008 (9.0)", "Software\\Microsoft\\VisualStudio\\SxS\\VC7\\9.0", "cl.exe"}, // link.exe, lib.exe |
|
83 {CC_NET2010, "Microsoft (R) 32-bit C/C++ Optimizing Compiler.NET 2010 (10.0)", "Software\\Microsoft\\VisualStudio\\SxS\\VC7\\10.0", "cl.exe"}, // link.exe, lib.exe |
83 {CC_UNKNOWN, "Unknown", 0, 0}, |
84 {CC_UNKNOWN, "Unknown", 0, 0}, |
84 }; |
85 }; |
85 |
86 |
86 |
87 |
87 // Initialize static variables |
88 // Initialize static variables |
355 // ---------------------------- |
359 // ---------------------------- |
356 QString program = arguments.takeAt(0); |
360 QString program = arguments.takeAt(0); |
357 QString args = qt_create_commandline(program, arguments); |
361 QString args = qt_create_commandline(program, arguments); |
358 QByteArray envlist = qt_create_environment(fullEnv); |
362 QByteArray envlist = qt_create_environment(fullEnv); |
359 |
363 |
360 DWORD exitCode = -1; |
364 DWORD exitCode = DWORD(-1); |
361 PROCESS_INFORMATION procInfo; |
365 PROCESS_INFORMATION procInfo; |
362 memset(&procInfo, 0, sizeof(procInfo)); |
366 memset(&procInfo, 0, sizeof(procInfo)); |
363 |
367 |
364 STARTUPINFO startInfo; |
368 STARTUPINFO startInfo; |
365 memset(&startInfo, 0, sizeof(startInfo)); |
369 memset(&startInfo, 0, sizeof(startInfo)); |