aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-05-25 12:44:47 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-05-25 12:46:11 +0200
commitf4de56f7023f1cc90bb2f1ba55db596beffb1a4f (patch)
tree0dd2fac277f573477e44b3b608d52e0480a4ba34
parentc7622cd38edad07a28c98b1613c684731d7c6dcc (diff)
Update comment with VC version mapping
-rw-r--r--build2/cc/guess.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/build2/cc/guess.cxx b/build2/cc/guess.cxx
index 5fa0604..0932083 100644
--- a/build2/cc/guess.cxx
+++ b/build2/cc/guess.cxx
@@ -1585,8 +1585,9 @@ namespace build2
// it 14.2 (which is the version of the "toolset") in our target
// triplet.
//
- // year ver cl crt/dll
+ // year ver cl crt/dll toolset
//
+ // 2019 16.1 19.21 14.2/140 14.21
// 2019 16.0 19.20 14.2/140
// 2017 15.9 19.16 14.1/140
// 2017 15.8 19.15 14.1/140
@@ -1603,6 +1604,8 @@ namespace build2
// 2005 8 14.00 8.0/80
// 2003 7.1 13.10 7.1/71
//
+ // _MSC_VER is the numeric cl version, e.g., 1921 for 19.21.
+ //
/**/ if (v.major == 19 && v.minor >= 20) t += "14.2";
else if (v.major == 19 && v.minor >= 10) t += "14.1";
else if (v.major == 19 && v.minor == 0) t += "14.0";