diff options
-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. |