diff options
Diffstat (limited to 'build2/rule.cxx')
-rw-r--r-- | build2/rule.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/build2/rule.cxx b/build2/rule.cxx index a462e58..a48fef2 100644 --- a/build2/rule.cxx +++ b/build2/rule.cxx @@ -67,7 +67,12 @@ namespace build2 // derivation function to treat this as prerequisite (just like // in search_existing_file()). // - pt.derive_extension (nullptr, true); + if (pt.derive_extension (true) == nullptr) + { + l4 ([&]{trace << "no default extension for target " << pt;}); + return false; + } + p = &pt.derive_path (); } |