aboutsummaryrefslogtreecommitdiff
path: root/tests/cc/modules/common.testscript
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-11-05 08:55:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-11-05 08:55:10 +0200
commit292907f90d39211bcf41d6511baf051013fa11e9 (patch)
treed74d38cfceaace62bf1cd5d3cc626da193c77c7a /tests/cc/modules/common.testscript
parentd48027b835e19c97ad6af8721bd8643c8c180acf (diff)
Disable C++ modules tests for Clang 9
See the following post for details: http://lists.llvm.org/pipermail/cfe-dev/2019-October/063637.html
Diffstat (limited to 'tests/cc/modules/common.testscript')
-rw-r--r--tests/cc/modules/common.testscript8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/cc/modules/common.testscript b/tests/cc/modules/common.testscript
index 97c5a2b..6eb8853 100644
--- a/tests/cc/modules/common.testscript
+++ b/tests/cc/modules/common.testscript
@@ -28,6 +28,14 @@ using cxx
if ($cxx.id == 'msvc' && $cxx.version.major == 19 && $cxx.version.minor < 12)
cxx.features.modules = false
+# In Clang 9 modules are enabled by default in the c++2a mode and there is
+# no way to disable them. See the following post for details:
+#
+# http://lists.llvm.org/pipermail/cfe-dev/2019-October/063637.html
+#
+if ($cxx.id == 'clang' && $cxx.version.major >= 9)
+ cxx.features.modules = false
+
hxx{*}: extension = hxx
mxx{*}: extension = mxx
cxx{*}: extension = cxx