diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-09 11:31:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-12 17:04:22 +0200 |
commit | 9fa5f73d00905568e8979d0c93ec4a8f645c81d5 (patch) | |
tree | f2bf937fa256c0ef2c9bbe05d3655d1985719405 /build2/cxx/utility.ixx | |
parent | a1b2319ff2ddc8a6f139ee364cabe236ca62e23e (diff) |
Implement support for C compilation
We now have two new modules: cc (c-common) and c.
Diffstat (limited to 'build2/cxx/utility.ixx')
-rw-r--r-- | build2/cxx/utility.ixx | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/build2/cxx/utility.ixx b/build2/cxx/utility.ixx deleted file mode 100644 index c624e87..0000000 --- a/build2/cxx/utility.ixx +++ /dev/null @@ -1,33 +0,0 @@ -// file : build2/cxx/utility.ixx -*- C++ -*- -// copyright : Copyright (c) 2014-2016 Code Synthesis Ltd -// license : MIT; see accompanying LICENSE file - -namespace build2 -{ - namespace cxx - { - bool - translate_std (scope&, const string&, const value&, string&); - - template <typename T> - inline void - append_std (cstrings& args, scope& rs, const string& cid, T& t, string& s) - { - if (auto l = t["cxx.std"]) - if (translate_std (rs, cid, *l, s)) - args.push_back (s.c_str ()); - } - - template <typename T> - inline void - hash_std (sha256& csum, scope& rs, const string& cid, T& t) - { - if (auto l = t["cxx.std"]) - { - string s; - if (translate_std (rs, cid, *l, s)) - csum.append (s); - } - } - } -} |