From 90ae462a44a1478e1c4be1568997b6873f6e688d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 20 Feb 2015 09:38:38 +0200 Subject: Rename 'directory' to 'dir' in target, prerequisite --- build/cxx/rule.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'build/cxx') diff --git a/build/cxx/rule.cxx b/build/cxx/rule.cxx index 26ad213..1c7d992 100644 --- a/build/cxx/rule.cxx +++ b/build/cxx/rule.cxx @@ -68,7 +68,7 @@ namespace build obj& o (dynamic_cast (t)); if (o.path ().empty ()) - o.path (o.directory / path (o.name + ".o")); + o.path (o.dir / path (o.name + ".o")); // Resolve prerequisite to target and match it to a rule. We need // this in order to get the source file path for prerequisite @@ -418,7 +418,7 @@ namespace build exe& e (dynamic_cast (t)); if (e.path ().empty ()) - e.path (e.directory / path (e.name)); + e.path (e.dir / path (e.name)); // Do rule chaining for C and C++ source files. // @@ -439,17 +439,17 @@ namespace build // possible it is under out_root (e.g., generated source). // path d; - if (cp.directory.relative () || cp.directory.sub (out_root)) - d = cp.directory; + if (cp.dir.relative () || cp.dir.sub (out_root)) + d = cp.dir; else { - if (!cp.directory.sub (src_root)) + if (!cp.dir.sub (src_root)) { fail << "out of project prerequisite " << cp << info << "specify corresponding obj{} target explicitly"; } - d = out_root / cp.directory.leaf (src_root); + d = out_root / cp.dir.leaf (src_root); } prerequisite& op ( -- cgit v1.1