diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-24 12:03:50 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-24 12:03:50 +0200 |
commit | aec5f7309b2ee7210dc39de9c792f35273c73c10 (patch) | |
tree | 039064cbccb9ef01a5b93ca1659ae05137e61d3f /build2/parser.cxx | |
parent | 4b507ea962169a8d19e4b37b940448eba97d87a4 (diff) |
Differentiate extension printing according to stream verbosity
Diffstat (limited to 'build2/parser.cxx')
-rw-r--r-- | build2/parser.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/build2/parser.cxx b/build2/parser.cxx index b28f4f6..ad556ce 100644 --- a/build2/parser.cxx +++ b/build2/parser.cxx @@ -941,9 +941,8 @@ namespace build2 // base doesn't use extensions, then most likely neither do we (think // foo: alias). // - dt->extension = /*bt->extension == nullptr - ? nullptr - :*/ &target_extension_var<derived_ext_var, nullptr>; + if (bt->extension != nullptr) + dt->extension = &target_extension_var<derived_ext_var, nullptr>; target_type& rdt (*dt); // Save a non-const reference to the object. |