diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-29 10:57:40 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-29 10:57:40 +0200 |
commit | 3cf3b73ffc6881d5428a735736a347f6e143b366 (patch) | |
tree | 3559fa9d2d44cc11e07987752027f7c2a9e3e23e /build2/utility.ixx | |
parent | 2a4f52c46f2081aaeb2664e8026d3d067142e3d5 (diff) |
Implement auxiliary dependency database (.d files), use in cxx.compile
This is part of the "High Fidelity Build" work.
Diffstat (limited to 'build2/utility.ixx')
-rw-r--r-- | build2/utility.ixx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/build2/utility.ixx b/build2/utility.ixx new file mode 100644 index 0000000..04ba9f5 --- /dev/null +++ b/build2/utility.ixx @@ -0,0 +1,27 @@ +// file : build2/utility.ixx -*- C++ -*- +// copyright : Copyright (c) 2014-2016 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +namespace build2 +{ + template <typename T> + inline void + append_options (cstrings& args, T& s, const char* var) + { + append_options (args, s[var]); + } + + template <typename T> + inline void + hash_options (sha256& csum, T& s, const char* var) + { + hash_options (csum, s[var]); + } + + template <typename T> + inline bool + find_option (const char* option, T& s, const char* var) + { + return find_option (option, s[var]); + } +} |