| Summary: | Microsoft.Targets.Win32 fails to detect compiler version when configuro run as custom build step under Microsoft Visual Studio 2008 | ||
|---|---|---|---|
| Product: | [Technology] RTSC | Reporter: | Gordon Deane <gordon.deane> |
| Component: | Targets | Assignee: | Sasha Slijepcevic <sascha> |
| Status: | ASSIGNED --- | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Gordon Deane
I can see that Java's Process, which we use to run the cl.exe process, is not getting anything in its input and error streams. So, it seems cl recognizes it's inside Visual Studio and sends the output directly to the Build Console. I tested this in VS 2005, so there might be other problems in VS 2008. VS2008 sets a number of environment variables when it spawns subtasks. It may be that some of these change the behaviour of CL.EXE?
eg.
VCBuildHelper_CancelEvent={9663CB8B-50FC-4DF6-BBE4-391D5879C5B7}
VCBuildHelper_Command=C:\Windows\SysWow64\cmd.exe
If so, possibly stripping these variables out of the environment might restore stdout? I haven't got time to experiment at the moment, since I've got a workaround that works.
|