aboutsummaryrefslogtreecommitdiff
path: root/func.cc
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-09-09 18:22:04 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-09-09 18:22:04 +0900
commit003d06ede28997fcfbda65a14907b3ca17fb2d39 (patch)
treef6c114298dd06ddba83da635a8317682da087373 /func.cc
parentb6a04540f2522a37b88090c0c806649399bed083 (diff)
downloadkati-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.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/func.cc b/func.cc
index 2ca117c..25c41c1 100644
--- a/func.cc
+++ b/func.cc
@@ -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;