aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-06-09 17:05:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-06-09 17:05:54 +0200
commit1178ee892bf731d46a680e8fa48afa4807c4a531 (patch)
tree2ad204eabb25b16a2b80281932f6cc0552cf7402
parent75ea9a2576390e0b43d3d81e4292e9f4a4a68e5b (diff)
Only enable modules support starting from VC15u3 (19.11)
-rw-r--r--build2/cxx/init.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/build2/cxx/init.cxx b/build2/cxx/init.cxx
index db2adf4..89c7c11 100644
--- a/build2/cxx/init.cxx
+++ b/build2/cxx/init.cxx
@@ -135,9 +135,12 @@ namespace build2
{
case compiler_id::msvc:
{
- // Enable starting with VC15 (19.10).
+ // While modules are supported in VC15u0 (19.10), there is a
+ // bug in separate interface/implementation unit support which
+ // makes them pretty much unusable. This has been fixed in
+ // VC15u3 (19.11)
//
- if (mj > 19 || (mj == 19 && mi > 0))
+ if (mj > 19 || (mj == 19 && mi >= 11))
{
r.push_back ("/experimental:module");
r.push_back ("/D__cpp_modules=201703"); // n4647