Ninja
|
Wraps a synchronous execution of a CL subprocess. More...
#include <msvc_helper.h>
Public Member Functions | |
CLWrapper () | |
int | Run (const string &command, string *output) |
Start a process and gather its raw output. More... | |
void | SetEnvBlock (void *env_block) |
Set the environment block (as suitable for CreateProcess) to be used by Run(). More... | |
Public Attributes | |
void * | env_block_ |
Wraps a synchronous execution of a CL subprocess.
Definition at line 50 of file msvc_helper.h.
|
inline |
Definition at line 51 of file msvc_helper.h.
int CLWrapper::Run | ( | const string & | command, |
string * | output | ||
) |
Start a process and gather its raw output.
Returns its exit code. Crashes (calls Fatal()) on error.
Definition at line 119 of file msvc_helper-win32.cc.
References env_block_, Fatal(), and ReadFile().
Referenced by MSVCHelperMain(), and TEST().
|
inline |
Set the environment block (as suitable for CreateProcess) to be used by Run().
Definition at line 55 of file msvc_helper.h.
Referenced by MSVCHelperMain(), and TEST().
void* CLWrapper::env_block_ |
Definition at line 61 of file msvc_helper.h.
Referenced by Run().