diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-16 16:05:05 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-16 16:28:12 +0300 |
commit | 320e849d17597aef40b9e3e62f79319f13f97e45 (patch) | |
tree | 9d6e4254c5461bfd3547aa4aa2d21057f77ee1b9 /build2/cc | |
parent | 5d54628076bd7fc97e90c81b6d0df0fef4ceae20 (diff) |
Fix uncaught invalid_path exception
Diffstat (limited to 'build2/cc')
-rw-r--r-- | build2/cc/common.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
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<string> 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; |