aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/guess.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cc/guess.hxx')
-rw-r--r--build2/cc/guess.hxx15
1 files changed, 14 insertions, 1 deletions
diff --git a/build2/cc/guess.hxx b/build2/cc/guess.hxx
index dbd06e3..4d5d036 100644
--- a/build2/cc/guess.hxx
+++ b/build2/cc/guess.hxx
@@ -23,8 +23,8 @@ namespace build2
// gcc GCC gcc/g++
// clang Vanilla Clang clang/clang++
// clang-apple Apple Clang clang/clang++ and the gcc/g++ "alias"
- // icc Intel icc/icpc
// msvc Microsoft cl.exe
+ // icc Intel icc/icpc
//
struct compiler_id
{
@@ -36,6 +36,19 @@ namespace build2
std::string
string () const {return variant.empty () ? type : type + "-" + variant;}
+
+ // Note: does not include variant.
+ //
+ enum value_type
+ {
+ gcc,
+ clang,
+ msvc,
+ icc
+ };
+
+ value_type
+ value () const;
};
inline ostream&