diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-06-01 10:26:58 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-06-01 10:26:58 +0200 |
commit | 33e77af6cc7e3562d684e8b24c43a613a123211c (patch) | |
tree | 1f0fce570d215700042ba78654953e9d84b35dda /build2/cc/compile.hxx | |
parent | d0cc71368bbedfcf6a79c2d902341acd5430af1d (diff) |
Rework language selection during compilation code
Diffstat (limited to 'build2/cc/compile.hxx')
-rw-r--r-- | build2/cc/compile.hxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/build2/cc/compile.hxx b/build2/cc/compile.hxx index 2b6fb2e..893194e 100644 --- a/build2/cc/compile.hxx +++ b/build2/cc/compile.hxx @@ -45,6 +45,8 @@ namespace build2 perform_clean (action, const target&) const; private: + struct match_data; + void append_lib_options (const scope&, cstrings&, @@ -88,13 +90,18 @@ namespace build2 pair<auto_rmfile, bool> extract_headers (action, file&, lorder, - const file&, + const file&, const match_data&, depdb&, bool&) const; void extract_modules (action, file&, lorder, - const file&, auto_rmfile&, preprocessed, + const file&, auto_rmfile&, const match_data&, depdb&, bool&) const; + // Language selection option (for VC) or the value for the -x option. + // + const char* + lang (const match_data&) const; + private: const string rule_id; }; |