diff options
author | Evan Martin <martine@danga.com> | 2012-08-15 03:54:59 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-08-15 03:55:12 (GMT) |
commit | 59e0d69ec2775f1aa46d87ad7d14e6985e5187b6 (patch) | |
tree | cd4fa8f81fdf9ac3bbcfdd7ad5d2c40ded4a4f68 /src/msvc_helper.h | |
parent | 6c04f14fd27485a5948a93c17aacfd6cdb5fcdb7 (diff) | |
download | Ninja-59e0d69ec2775f1aa46d87ad7d14e6985e5187b6.zip Ninja-59e0d69ec2775f1aa46d87ad7d14e6985e5187b6.tar.gz Ninja-59e0d69ec2775f1aa46d87ad7d14e6985e5187b6.tar.bz2 |
pass env block to cl helper
Diffstat (limited to 'src/msvc_helper.h')
-rw-r--r-- | src/msvc_helper.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/msvc_helper.h b/src/msvc_helper.h index 41b9f9b..f623520 100644 --- a/src/msvc_helper.h +++ b/src/msvc_helper.h @@ -21,6 +21,12 @@ using namespace std; /// format when building with /showIncludes. This class wraps a CL /// process and parses that output to extract the file list. struct CLWrapper { + CLWrapper() : env_block_(NULL) {} + + /// Set the environment block (as suitable for CreateProcess) to be used + /// by Run(). + void SetEnvBlock(void* env_block) { env_block_ = env_block; } + /// Start a process and parse its output. Returns its exit code. /// Any non-parsed output is buffered into \a extra_output if provided, /// otherwise it is printed to stdout while the process runs. @@ -43,5 +49,6 @@ struct CLWrapper { /// Exposed for testing. static bool FilterInputFilename(const string& line); + void* env_block_; vector<string> includes_; }; |