From 14addc7e868d298f7399d20ac54a42d34151c07c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 15 Apr 2021 15:42:17 +0200 Subject: Disable modules support in VC 16.8 and later due to options change See GitHub issue #134 for background. --- libbuild2/cxx/init.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libbuild2/cxx/init.cxx b/libbuild2/cxx/init.cxx index 077e3fd..0bbab52 100644 --- a/libbuild2/cxx/init.cxx +++ b/libbuild2/cxx/init.cxx @@ -360,9 +360,12 @@ namespace build2 // which makes them pretty much unusable. This has been fixed in // 15.3 (19.11). And 15.5 (19.12) supports the `export module // M;` syntax. And 16.4 (19.24) supports the global module - // fragment. + // fragment. And in 16.8 all the modules-related options have + // been changed. Seeing that the whole thing is unusable anyway, + // we disable it for 16.8 or later for now. // - if (mj > 19 || (mj == 19 && mi >= (modules.value ? 10 : 12))) + if ((mj > 19 || (mj == 19 && mi >= (modules.value ? 10 : 12))) && + (mj < 19 || (mj == 19 && mi < 28) || modules.value)) { prepend ( mj > 19 || mi >= 24 ? -- cgit v1.1