From 5974cab56148a18628bfb423189e016ade2d40f9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 31 Aug 2015 13:45:57 +0200 Subject: Rework scoping logic Now the src directory is entered into the scope map and points to the same scope as out. This means that targets that are in src, not out (e.g., source files) will "see" rules, variables, etc. This becomes important when we try, for example, to install a source file (say, a header) from src: we need the rule as well as the install.* variables. --- build/cli/module.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build/cli') diff --git a/build/cli/module.cxx b/build/cli/module.cxx index 0e81db3..f8d1522 100644 --- a/build/cli/module.cxx +++ b/build/cli/module.cxx @@ -36,7 +36,7 @@ namespace build bool first) { tracer trace ("cli::init"); - level4 ([&]{trace << "for " << base.path ();}); + level4 ([&]{trace << "for " << base.out_path ();}); // Make sure the cxx module has been loaded since we need its // targets types (?xx{}). Note that we don't try to load it -- cgit v1.1