diff options
Diffstat (limited to 'build2/target.cxx')
-rw-r--r-- | build2/target.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/build2/target.cxx b/build2/target.cxx index c032028..ad448cb 100644 --- a/build2/target.cxx +++ b/build2/target.cxx @@ -304,6 +304,11 @@ namespace build2 if (t == nullptr) { + // We sometimes call insert() even if we expect to find an existing + // target in order to keep the same code (see cc/search_library()). + // + assert (phase != run_phase::execute); + pair<target*, optional<string>> te ( tt.factory ( tt, move (dir), move (out), move (name), move (tk.ext))); |