From 7e4bdc0f934cd1dd4e210cd58f8dc3a3d23902e1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 4 Sep 2016 18:18:50 +0200 Subject: Add digits to right pattern separator to handle clang++37 (FreeBSD). --- build2/cc/guess.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'build2/cc') diff --git a/build2/cc/guess.cxx b/build2/cc/guess.cxx index cb4b584..f23a175 100644 --- a/build2/cc/guess.cxx +++ b/build2/cc/guess.cxx @@ -328,11 +328,14 @@ namespace build2 // respectively. Note that a path that is equal to stem is not considered // a pattern. // + // Note that the default right separator includes digits to handle cases + // like clang++37 (FreeBSD). + // static string pattern (const path& xc, const char* s, const char* ls = "-_.", - const char* rs = "-_.") + const char* rs = "-_.0123456789") { string r; size_t sn (strlen (s)); -- cgit v1.1