aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-11-26 07:32:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-11-30 13:03:07 +0200
commitc0303569afe979f3965228835ac902dce2e940c2 (patch)
treebb4796b61d74fae286d0a8d328968a503c2bade6 /tests
parent7801dc763e50fcecc8a370f78fe33b5e86e1c8a3 (diff)
Start adapting module mapper to latest GCC protocol
Diffstat (limited to 'tests')
-rw-r--r--tests/cc/modules/common.testscript6
-rw-r--r--tests/cc/modules/headers.testscript4
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/cc/modules/common.testscript b/tests/cc/modules/common.testscript
index 2fbb9a5..6f09c62 100644
--- a/tests/cc/modules/common.testscript
+++ b/tests/cc/modules/common.testscript
@@ -13,11 +13,17 @@ EOI
+cat <<EOI >=build/root.build
using in
+using cxx.guess
+
# Force modules.
#
cxx.std = experimental
cxx.features.symexport = true
+# @@ TMP revise
+if ($cxx.id == 'gcc')
+ cxx.features.modules = true
+
using cxx
hxx{*}: extension = hxx
diff --git a/tests/cc/modules/headers.testscript b/tests/cc/modules/headers.testscript
index dacb6f0..6fc2ba7 100644
--- a/tests/cc/modules/headers.testscript
+++ b/tests/cc/modules/headers.testscript
@@ -120,6 +120,9 @@ $* test clean config.cxx.translatable_headers="$~/core.hxx" <<EOI
EOI
}
+# @@ TODO
+#
+#\
: generated
:
ln -s ../core.hxx.in ./;
@@ -164,6 +167,7 @@ $* 'test:' ./@$out/remapped/ \
hxx{core}: in{core}
EOI
rm -rf $out
+#\
# Clean module sidebuilds.
#