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-24 14:50:13 +0200
commit24df448a20106aabff6d031591a5992d3baaac21 (patch)
treed3b30fa594fa912a0bbad9eec97f865ec20fe867
parent60a31902d632b3e76dc8719047fd63d5d6ec6338 (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.