From 8e0e8edb727a5367d991880b033eb13060f4c8eb Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 26 Aug 2019 07:34:15 +0200 Subject: Make target types project-wide --- libbuild2/parser.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbuild2/parser.cxx') diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx index c1787d6..2af5762 100644 --- a/libbuild2/parser.cxx +++ b/libbuild2/parser.cxx @@ -1982,7 +1982,7 @@ namespace build2 if (bt == nullptr) fail (t) << "unknown target type " << bn; - if (!scope_->derive_target_type (move (dn), *bt).second) + if (!root_->derive_target_type (move (dn), *bt).second) fail (dnl) << "target type " << dn << " already define in this scope"; next (t, tt); // Get newline. -- cgit v1.1