diff options
Diffstat (limited to 'build2/cxx/utility.cxx')
-rw-r--r-- | build2/cxx/utility.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
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<lib> () || t->is_a<liba> () || t->is_a<libso> ()) + hash_lib_options (csum, *t, var); + } + + hash_options (csum, l, var); + } } } |