diff options
Diffstat (limited to 'build2/cxx/compile.cxx')
-rw-r--r-- | build2/cxx/compile.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/cxx/compile.cxx b/build2/cxx/compile.cxx index a7986c5..a0b4f3a 100644 --- a/build2/cxx/compile.cxx +++ b/build2/cxx/compile.cxx @@ -687,12 +687,12 @@ namespace build2 dir_path out; scope& bs (scopes.find (d)); - if (bs.root_scope () != nullptr) + if (scope* rs = bs.root_scope ()) { tt = map_extension (bs, n, *e); if (bs.out_path () != bs.src_path () && d.sub (bs.src_path ())) - out = out_src (d, bs); + out = out_src (d, *rs); } // If it is outside any project, or the project doesn't have |