aboutsummaryrefslogtreecommitdiff
path: root/build2/b.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/b.cxx')
-rw-r--r--build2/b.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/build2/b.cxx b/build2/b.cxx
index bd77a02..ca8c15b 100644
--- a/build2/b.cxx
+++ b/build2/b.cxx
@@ -967,7 +967,9 @@ main (int argc, char* argv[])
//
scope& bs (scopes.find (ts.out_base));
- const string* e;
+ // Find the target type and extract the extension.
+ //
+ optional<string> e;
const target_type* ti (bs.find_target_type (tn, e));
if (ti == nullptr)