From bd9b1fa4b6c20b7eedf7f96d9b9aae6ff5edfbfb Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 30 Jul 2016 13:34:41 +0200 Subject: Construct paths to use canonical directory separators Hardcoding separators as in "build/root.build" is now a big no-no. --- build2/dist/operation.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build2/dist') diff --git a/build2/dist/operation.cxx b/build2/dist/operation.cxx index c87f0e7..0ab9241 100644 --- a/build2/dist/operation.cxx +++ b/build2/dist/operation.cxx @@ -140,9 +140,9 @@ namespace build2 // ignored on the next step if the user explicitly marked them // nodist. // - auto add_adhoc = [&trace] (scope& rs, const char* f) + auto add_adhoc = [&trace] (scope& rs, const path& f) { - path p (rs.src_path () / path (f)); + path p (rs.src_path () / f); if (file_exists (p)) { dir_path d (p.directory ()); @@ -163,7 +163,7 @@ namespace build2 } }; - add_adhoc (*rs, "build/export.build"); + add_adhoc (*rs, export_file); // The same for subprojects that have been loaded. // @@ -181,7 +181,7 @@ namespace build2 if (!nrs.src_path ().sub (src_root)) // Not a strong amalgamation. continue; - add_adhoc (nrs, "build/export.build"); + add_adhoc (nrs, export_file); } } -- cgit v1.1