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 | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'build2/cxx/utility') diff --git a/build2/cxx/utility b/build2/cxx/utility index 7072c7b..307e1b4 100644 --- a/build2/cxx/utility +++ b/build2/cxx/utility @@ -10,25 +10,28 @@ #include -#include - namespace build2 { namespace cxx { - using config::append_options; - // T is either target or scope. // template void - append_std (cstrings& args, T&, string& storage); + append_std (cstrings&, T&, string& storage); - // Append library options from one of the cxx.export.* variables + template + void + hash_std (sha256&, T&); + + // Append or hash library options from one of the cxx.export.* variables // recursively, prerequisite libraries first. // void - append_lib_options (cstrings& args, target&, const char* variable); + append_lib_options (cstrings&, target&, const char* variable); + + void + hash_lib_options (sha256&, target&, const char* variable); } } -- cgit v1.1