diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-08-16 17:03:29 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-08-16 17:03:29 +0200 |
commit | d84c09cd97e75c1ec7645307f0157df8cef8c79a (patch) | |
tree | 646a2d1a5dc06a3feb81395b2e2e2d535317bcbd | |
parent | d016a72504b35e41efa8af6f3f7fa06fc322715d (diff) |
Allow any directory separators when building src-out map
-rw-r--r-- | build2/cc/compile.cxx | 7 |
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. |