aboutsummaryrefslogtreecommitdiff
path: root/build2/target.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-11-22 11:31:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-11-22 11:31:35 +0200
commit6cb9d0e810c3336106b6c1f3c8a80cdec6fbdcf0 (patch)
treeeb2475162e91e81fded9645df54d6e199c6c3fc5 /build2/target.hxx
parent1a2ea6db0d5de8c5cabb4fedc845ce9e72cccff0 (diff)
Fix dist bug where missing source file would be silently ignored
Diffstat (limited to 'build2/target.hxx')
-rw-r--r--build2/target.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/build2/target.hxx b/build2/target.hxx
index 0ed1aac..e541667 100644
--- a/build2/target.hxx
+++ b/build2/target.hxx
@@ -935,12 +935,6 @@ namespace build2
}
const target_type*
- load (memory_order mo = memory_order_consume)
- {
- return target != nullptr ? target : prerequisite.target.load (mo);
- }
-
- const target_type*
search_existing () const
{
return target != nullptr
@@ -948,6 +942,12 @@ namespace build2
: build2::search_existing (prerequisite);
}
+ const target_type*
+ load (memory_order mo = memory_order_consume)
+ {
+ return target != nullptr ? target : prerequisite.target.load (mo);
+ }
+
// Return as a new prerequisite instance.
//
prerequisite_type