aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-08-16 17:03:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-08-16 17:03:29 +0200
commitd84c09cd97e75c1ec7645307f0157df8cef8c79a (patch)
tree646a2d1a5dc06a3feb81395b2e2e2d535317bcbd
parentd016a72504b35e41efa8af6f3f7fa06fc322715d (diff)
Allow any directory separators when building src-out map
-rw-r--r--build2/cc/compile.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/build2/cc/compile.cxx b/build2/cc/compile.cxx
index a62ce4a..5133d64 100644
--- a/build2/cc/compile.cxx
+++ b/build2/cc/compile.cxx
@@ -1644,10 +1644,11 @@ namespace build2
//
if (!d.empty ())
{
- // Ignore any paths containing '.', '..' components wrong
- // separators, etc.
+ // Ignore any paths containing '.', '..' components. Allow
+ // any directory separators thought (think -I$src_root/foo
+ // on Windows).
//
- if (d.absolute () && d.normalized ())
+ if (d.absolute () && d.normalized (false))
{
// If we have a candidate out_base, see if this is its
// src_base.