From 7c3eada02a3a22ff109ef0631e75586308ab2587 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 4 Dec 2017 13:24:37 +0200 Subject: Recognize empty cc.pattern --- build2/cc/guess.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/cc/guess.cxx') 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)); } } } -- cgit v1.1