From 3cf3b73ffc6881d5428a735736a347f6e143b366 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 29 Feb 2016 10:57:40 +0200 Subject: Implement auxiliary dependency database (.d files), use in cxx.compile This is part of the "High Fidelity Build" work. --- build2/cxx/utility.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'build2/cxx/utility.cxx') diff --git a/build2/cxx/utility.cxx b/build2/cxx/utility.cxx index 0a26aea..15980d4 100644 --- a/build2/cxx/utility.cxx +++ b/build2/cxx/utility.cxx @@ -25,5 +25,19 @@ namespace build2 append_options (args, l, var); } + + void + hash_lib_options (sha256& csum, target& l, const char* var) + { + using namespace bin; + + for (target* t: l.prerequisite_targets) + { + if (t->is_a () || t->is_a () || t->is_a ()) + hash_lib_options (csum, *t, var); + } + + hash_options (csum, l, var); + } } } -- cgit v1.1