aboutsummaryrefslogtreecommitdiff
path: root/build2/parser.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-01-30 12:44:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-02-13 12:42:41 +0200
commit1f543f6eb368c3b23aa1f9cd2d23f0dba1456dec (patch)
treea3c1b756c2cc27fac0ac392ce8d108e147b23840 /build2/parser.cxx
parentb262d2c9c56eed18d043dccefac02b54a6ae2f95 (diff)
Add notion of load phase generation
Diffstat (limited to 'build2/parser.cxx')
-rw-r--r--build2/parser.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/parser.cxx b/build2/parser.cxx
index fe12b98..af6a6f5 100644
--- a/build2/parser.cxx
+++ b/build2/parser.cxx
@@ -1593,7 +1593,7 @@ namespace build2
if (type != nullptr)
{
if (var.type == nullptr)
- var.type = type;
+ var_pool.update (const_cast<variable&> (var), type);
else if (var.type != type)
fail (l) << "changing variable " << var << " type from "
<< var.type->name << " to " << type->name;