diff options
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 { |