aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/guess.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-12-04 13:24:37 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-12-04 13:24:37 +0200
commit7c3eada02a3a22ff109ef0631e75586308ab2587 (patch)
tree3e8452d5f25cb3124508deaca9d14842a0ced0f4 /build2/cc/guess.cxx
parentad770fe609d1958a64e7364861296ac5407611d9 (diff)
Recognize empty cc.pattern
Diffstat (limited to 'build2/cc/guess.cxx')
-rw-r--r--build2/cc/guess.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/cc/guess.cxx b/build2/cc/guess.cxx
index 627283f..df7899b 100644
--- a/build2/cc/guess.cxx
+++ b/build2/cc/guess.cxx
@@ -1189,7 +1189,7 @@ namespace build2
}
path
- guess_default (lang xl, const string& c, const string* pat)
+ guess_default (lang xl, const string& c, const string& pat)
{
const char* s (nullptr);
@@ -1217,7 +1217,7 @@ namespace build2
}
}
- return path (apply_pattern (s, pat));
+ return path (apply_pattern (s, &pat));
}
}
}