aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-09-04 18:18:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-09-04 18:18:50 +0200
commit7e4bdc0f934cd1dd4e210cd58f8dc3a3d23902e1 (patch)
treee7d60711dc62626c4b3eb3b7eee670b7634e8c38
parent201a7607f6b6d0c7b02e0ecccdc05258e1c623b1 (diff)
Add digits to right pattern separator to handle clang++37 (FreeBSD).
-rw-r--r--build2/cc/guess.cxx5
1 files changed, 4 insertions, 1 deletions
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));