From 8a0ebb2b607c92b8c1bdab7e525da2b711b31565 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 15 Jan 2024 08:49:57 +0200 Subject: Automatically alias unknown target types of imported targets --- libbuild2/scope.hxx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'libbuild2/scope.hxx') diff --git a/libbuild2/scope.hxx b/libbuild2/scope.hxx index 3f6b0af..968727b 100644 --- a/libbuild2/scope.hxx +++ b/libbuild2/scope.hxx @@ -358,19 +358,25 @@ namespace build2 // the out directory. // pair> - find_target_type (name&, name&, const location&) const; + find_target_type (name&, name&, + const location&, + const target_type* = nullptr) const; // As above, but return the result as a target key (with its members // shallow-pointing to processed parts in the two names). // target_key - find_target_key (name&, name&, const location&) const; + find_target_key (name&, name&, + const location&, + const target_type* = nullptr) const; // As above, but the names are passed as a vector. Issue appropriate // diagnostics if the wrong number of names is passed. // target_key - find_target_key (names&, const location&) const; + find_target_key (names&, + const location&, + const target_type* = nullptr) const; // Similar to the find_target_type() but does not complete relative // directories. @@ -378,7 +384,7 @@ namespace build2 pair> find_prerequisite_type (name&, name&, const location&, - const target_type* tt = nullptr) const; + const target_type* = nullptr) const; // As above, but return a prerequisite key. // -- cgit v1.1