diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-05-25 11:32:01 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-05-25 11:32:01 +0200 |
commit | 71d9aedda0919fb22e39d6e6ce60506ceb69812e (patch) | |
tree | 585afc25774555047ff41dc865c617732caf5ff2 /build2/cc/guess.hxx | |
parent | a1f459f8446370704695919b3131653300866ee9 (diff) |
Add compiler_id enum
Diffstat (limited to 'build2/cc/guess.hxx')
-rw-r--r-- | build2/cc/guess.hxx | 15 |
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& |