aboutsummaryrefslogtreecommitdiff
path: root/build2/file.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/file.ixx')
-rw-r--r--build2/file.ixx8
1 files changed, 4 insertions, 4 deletions
diff --git a/build2/file.ixx b/build2/file.ixx
index be43857..15fa8dc 100644
--- a/build2/file.ixx
+++ b/build2/file.ixx
@@ -10,20 +10,20 @@ namespace build2
return source_once (root, base, bf, base);
}
- target*
+ const target*
import (const prerequisite_key&, bool existing);
- inline target&
+ inline const target&
import (const prerequisite_key& pk)
{
- assert (phase == run_phase::search_match);
+ assert (phase == run_phase::match);
return *import (pk, false);
}
inline const target*
import_existing (const prerequisite_key& pk)
{
- assert (phase == run_phase::search_match || phase == run_phase::execute);
+ assert (phase == run_phase::match || phase == run_phase::execute);
return import (pk, true);
}
}