diff options
author | Roland Reichwein <mail@reichwein.it> | 2024-05-05 12:57:18 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2024-05-05 12:57:18 +0200 |
commit | 28609f436966f731f91e84d10c1d7d0621b4abe8 (patch) | |
tree | ffc2ae6cbea157e501910db004a3fdedfb98dfd1 /Builder.cpp | |
parent | d137a52a6807f4c74e8e7e32e62ee4acbfe92197 (diff) |
Tests
Diffstat (limited to 'Builder.cpp')
-rw-r--r-- | Builder.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Builder.cpp b/Builder.cpp index c59aec8..51ac90f 100644 --- a/Builder.cpp +++ b/Builder.cpp @@ -180,10 +180,12 @@ namespace { } Builder::Builder(const pt::ptree& ptree): + _ptree(ptree), _all_targets{get_all_targets(ptree)}, - _all_objects{get_all_objects(ptree)}, - _dependencies{get_dependencies(ptree)} + _all_objects{get_all_objects(ptree)} { + // intentionally defer creation of _dependencies to build() + // to prevent creation of .d files in clean() } std::vector<fs::path> Builder::dependencies_of(const fs::path& p) const @@ -311,6 +313,7 @@ void Builder::build_filelist() { // build everything according to specified configuration void Builder::build() { + _dependencies = get_dependencies(_ptree); // create build list by depth-first search //std::cout << "Calculating build list..." << std::endl; |