diff options
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-09-09 18:22:04 +0900 |
---|---|---|
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-09-09 18:22:04 +0900 |
commit | 003d06ede28997fcfbda65a14907b3ca17fb2d39 (patch) | |
tree | f6c114298dd06ddba83da635a8317682da087373 /func.cc | |
parent | b6a04540f2522a37b88090c0c806649399bed083 (diff) | |
download | kati-003d06ede28997fcfbda65a14907b3ca17fb2d39.tar.gz |
[C++] A global refactoring for command line flags
So we will be able to use the command line parser for sub-makes.
Diffstat (limited to 'func.cc')
-rw-r--r-- | func.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -519,8 +519,8 @@ static vector<CommandResult*> g_command_results; bool ShouldStoreCommandResult(StringPiece cmd) { if (HasWord(cmd, "date") || HasWord(cmd, "echo")) return false; - if (g_ignore_dirty_pattern) { - Pattern pat(g_ignore_dirty_pattern); + if (g_flags.ignore_dirty_pattern) { + Pattern pat(g_flags.ignore_dirty_pattern); for (StringPiece tok : WordScanner(cmd)) { if (pat.Match(tok)) return false; |