From 24df448a20106aabff6d031591a5992d3baaac21 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 16 Aug 2017 17:03:29 +0200 Subject: Allow any directory separators when building src-out map --- build2/cc/compile.cxx | 7 ++++--- 1 file 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. -- cgit v1.1