aboutsummaryrefslogtreecommitdiff
path: root/tests/cc/modules/common.testscript
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-11-09 08:21:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-11-09 08:21:42 +0200
commitf1b4ffa568c91302057da14e611368dcf9244953 (patch)
tree400880e1a34579d43f77980a10c41b4916897703 /tests/cc/modules/common.testscript
parent2fc58b7bda7f8da672c7bd165f441eef6b260dcf (diff)
Enable named modules tests for Clang 16 or later (but not on Windows)
Diffstat (limited to 'tests/cc/modules/common.testscript')
-rw-r--r--tests/cc/modules/common.testscript9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/cc/modules/common.testscript b/tests/cc/modules/common.testscript
index 50dc865..2aa19d1 100644
--- a/tests/cc/modules/common.testscript
+++ b/tests/cc/modules/common.testscript
@@ -21,7 +21,8 @@ cxx.std = experimental
cxx.features.symexport = true
# @@ TMP revise
-if ($cxx.id == 'gcc')
+if ($cxx.id == 'gcc' || \
+ ($cxx.id.type == 'clang' && $cxx.version.major >= 16))
cxx.features.modules = true
using cxx
@@ -38,7 +39,7 @@ if ($cxx.target.class == 'windows')
exe{*}: test = true
EOI
-# Determine if we have modules and header units support.
+# Determine if we have named modules and header units support.
#
+$* noop <<EOI | set modules
print $cxx.features.modules
@@ -49,8 +50,10 @@ print ($cxx.features.modules && $cxx.id == 'gcc')
EOI
# @@ TMP: modules support is broken in MinGW GCC (not just symexport).
+# @@ TMP: try modules with Clang on Windows (symexport is likely broken).
#
-if ($cxx.target.class == 'windows' && $cxx.id == 'gcc')
+if ($cxx.target.class == 'windows' && \
+ ($cxx.id == 'gcc' || $cxx.id.type == 'clang'))
modules = false
headers = false
end