diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-08-31 19:28:20 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-08-31 19:28:20 +0200 |
commit | 1bf439f7918f2c6f8fa07db3abb53722156945c7 (patch) | |
tree | 8463d61d3fc6424fb8d323a106106a7f9a3a787a /build2/cc/guess.cxx | |
parent | 12a1044b81e39b8ca03faca641dacf76dda6c506 (diff) |
Add ability to print cc compiler_id value
Diffstat (limited to 'build2/cc/guess.cxx')
-rw-r--r-- | build2/cc/guess.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/build2/cc/guess.cxx b/build2/cc/guess.cxx index e9b102f..0a60ffd 100644 --- a/build2/cc/guess.cxx +++ b/build2/cc/guess.cxx @@ -15,6 +15,19 @@ namespace build2 { namespace cc { + compiler_id:: + compiler_id (value_type v) + { + switch (v) + { + case clang_apple: type = "clang"; variant = "apple"; break; + case clang: type = "clang"; break; + case gcc: type = "gcc"; break; + case msvc: type = "msvc"; break; + case icc: type = "icc"; break; + } + } + auto compiler_id:: value () const -> value_type { |