From 320e849d17597aef40b9e3e62f79319f13f97e45 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 16 May 2018 16:05:05 +0300 Subject: Fix uncaught invalid_path exception --- build2/cc/common.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'build2/cc/common.cxx') diff --git a/build2/cc/common.cxx b/build2/cc/common.cxx index e4dbfe8..c32d83e 100644 --- a/build2/cc/common.cxx +++ b/build2/cc/common.cxx @@ -429,7 +429,10 @@ namespace build2 // This is import. // optional ext; - const target_type* tt (s.find_target_type (n, ext)); // Changes name. + + // Changes name. + // + const target_type* tt (s.find_target_type (n, ext, location ())); if (tt == nullptr) fail << "unknown target type '" << n.type << "' in library " << n; -- cgit v1.1