diff options
Diffstat (limited to 'src/graph.h')
-rw-r--r-- | src/graph.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/graph.h b/src/graph.h index 893ec09..0e203b4 100644 --- a/src/graph.h +++ b/src/graph.h @@ -112,12 +112,14 @@ struct Rule { bool restat() const { return restat_; } const EvalString& command() const { return command_; } - EvalString& command() { return command_; } const EvalString& description() const { return description_; } const EvalString& depfile() const { return depfile_; } const EvalString& rspfile() const { return rspfile_; } const EvalString& rspfile_content() const { return rspfile_content_; } + /// Used by a test. + void set_command(const EvalString& command) { command_ = command; } + private: // Allow the parsers to reach into this object and fill out its fields. friend struct ManifestParser; |