From 49fd34cb82d8edae683526a5d9fdd3c86136e646 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 30 May 2017 10:23:27 +0200 Subject: Rework C/C++ standard translation in preparation for experimental/modules Also fix bug in clang-apple versioning. --- build2/cc/common.hxx | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'build2/cc/common.hxx') diff --git a/build2/cc/common.hxx b/build2/cc/common.hxx index 55e6675..fa6ec5a 100644 --- a/build2/cc/common.hxx +++ b/build2/cc/common.hxx @@ -112,7 +112,7 @@ namespace build2 const string& tsys; // x.target.system const string& tclass; // x.target.class - const string& tstd; // Translated x_std value (can be empty). + const strings& tstd; // Translated x_std value (options). const process_path* pkgconfig; // pkgconfig.path (can be NULL). const dir_paths& sys_lib_dirs; // x.sys_lib_dirs @@ -153,7 +153,7 @@ namespace build2 uint64_t mj, uint64_t mi, const process_path& path, const target_triplet& tg, - const string& std, + const strings& std, const process_path* pkgc, const dir_paths& sld, const dir_paths& sid, @@ -177,22 +177,6 @@ namespace build2 public: common (data&& d): data (move (d)) {} - // Language standard (x.std) mapping. - // - void - append_std (cstrings& args) const - { - if (!tstd.empty ()) - args.push_back (tstd.c_str ()); - } - - void - hash_std (sha256& cs) const - { - if (!tstd.empty ()) - cs.append (tstd); - } - // Library handling. // public: -- cgit v1.1