From 421d0a4d1a7786e90407072b378cc060d325907d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 23 Aug 2019 09:46:11 +0200 Subject: Variables --- libbuild2/operation.cxx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'libbuild2/operation.cxx') diff --git a/libbuild2/operation.cxx b/libbuild2/operation.cxx index 19f6e4e..661c439 100644 --- a/libbuild2/operation.cxx +++ b/libbuild2/operation.cxx @@ -517,6 +517,8 @@ namespace build2 const scope& rs (*static_cast (ts[i].target)); + context& ctx (rs.ctx); + // Print [meta_]operation names. Due to the way our aliasing works, we // have to go through the [meta_]operation_table. // @@ -536,14 +538,14 @@ namespace build2 // This could be a simple project that doesn't set project name. // cout - << "project: " << cast_empty (rs[var_project]) << endl - << "version: " << cast_empty (rs[var_version]) << endl - << "summary: " << cast_empty (rs[var_project_summary]) << endl - << "url: " << cast_empty (rs[var_project_url]) << endl - << "src_root: " << cast (rs[var_src_root]) << endl - << "out_root: " << cast (rs[var_out_root]) << endl - << "amalgamation: " << cast_empty (rs[var_amalgamation]) << endl - << "subprojects: " << cast_empty (rs[var_subprojects]) << endl + << "project: " << cast_empty (rs[ctx.var_project]) << endl + << "version: " << cast_empty (rs[ctx.var_version]) << endl + << "summary: " << cast_empty (rs[ctx.var_project_summary]) << endl + << "url: " << cast_empty (rs[ctx.var_project_url]) << endl + << "src_root: " << cast (rs[ctx.var_src_root]) << endl + << "out_root: " << cast (rs[ctx.var_out_root]) << endl + << "amalgamation: " << cast_empty (rs[ctx.var_amalgamation]) << endl + << "subprojects: " << cast_empty (rs[ctx.var_subprojects]) << endl << "operations:"; print_ops (rs.root_extra->operations, operation_table); cout << endl << "meta-operations:"; print_ops (rs.root_extra->meta_operations, meta_operation_table); cout << endl; } -- cgit v1.1