aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/common.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-05-30 10:23:27 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-05-30 10:23:27 +0200
commit49fd34cb82d8edae683526a5d9fdd3c86136e646 (patch)
treee5e21a1d451e813ae18033066002019998ba5b76 /build2/cc/common.hxx
parentac379d5c0a7d8a7382649f3988eb86474d5e4a13 (diff)
Rework C/C++ standard translation in preparation for experimental/modules
Also fix bug in clang-apple versioning.
Diffstat (limited to 'build2/cc/common.hxx')
-rw-r--r--build2/cc/common.hxx20
1 files changed, 2 insertions, 18 deletions
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: