aboutsummaryrefslogtreecommitdiff
path: root/build/target.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-15 14:44:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-15 14:44:15 +0200
commit243da3993c138d33063f633aa3996a8a710ea396 (patch)
tree6d49a3f964f395773c06e258b6550a4d386fbec3 /build/target.txx
parent3c2bc8595e9d6cf6ff35079231c3aab474a38130 (diff)
Implement project-qualified names/prerequisites, two-stage import
Diffstat (limited to 'build/target.txx')
-rw-r--r--build/target.txx7
1 files changed, 5 insertions, 2 deletions
diff --git a/build/target.txx b/build/target.txx
index 6fe3f33..bded149 100644
--- a/build/target.txx
+++ b/build/target.txx
@@ -3,7 +3,7 @@
// license : MIT; see accompanying LICENSE file
#include <build/scope>
-#include <build/utility> // extension_pool
+#include <build/context> // extension_pool
#include <build/diagnostics>
#include <build/prerequisite>
@@ -36,7 +36,10 @@ namespace build
if (tk.dir->absolute ())
dr << "target " << tk;
else
- dr << "prerequisite " << prerequisite_key {tk, &s};
+ {
+ const std::string* proj (nullptr); // Used for local prerequisites.
+ dr << "prerequisite " << prerequisite_key {&proj, tk, &s};
+ }
}
return extension_pool.find (val.as<const std::string&> ());