diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-23 12:13:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-23 12:13:06 +0200 |
commit | 3e39190bc50284a620605c7b61faff197e116457 (patch) | |
tree | f121a5df5b275816205d8ab9d9a1036683e02d15 /build2/target.txx | |
parent | db0edaafe15831ba6fa9c2109da37942506c62b1 (diff) |
Clean up default target extension derivation logic
Diffstat (limited to 'build2/target.txx')
-rw-r--r-- | build2/target.txx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/build2/target.txx b/build2/target.txx index 6fef367..fbaa8ef 100644 --- a/build2/target.txx +++ b/build2/target.txx @@ -34,16 +34,13 @@ namespace build2 if (def != nullptr) return extension_pool.find (def); + // Similar code to target_extension_fail(). + // { diag_record dr; dr << error << "no default extension in variable '" << var << "'" << info << "required to derive file name for "; - // This is a bit hacky: we may be dealing with a target (see - // file::derive_path()) or prerequsite (see search_existing_file()). - // So we are going to check if dir is absolute. If it is, then - // we assume this is a target, otherwise -- prerequsite. - // if (tk.dir->absolute ()) dr << "target " << tk; else |