summaryrefslogtreecommitdiff
path: root/libmhello/build
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-08-02 15:22:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-08-02 15:22:20 +0200
commit2f1053f3ec400822b3c683a2bcc24b492f1fe7d7 (patch)
treed559f1a8d278ed637399e9c5deca3a8b3bdde3e0 /libmhello/build
parent1831872e311e0276507eb186680eded5a9667fa9 (diff)
Indicate that source is preprocessed to modules
Diffstat (limited to 'libmhello/build')
-rw-r--r--libmhello/build/root.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmhello/build/root.build b/libmhello/build/root.build
index 0f4a099..4286e66 100644
--- a/libmhello/build/root.build
+++ b/libmhello/build/root.build
@@ -2,6 +2,12 @@ cxx.std = experimental
cxx.features.symexport = true
+# Indicate that our sources do not use #include and module imports do not
+# depend on the preprocessor.
+#
+if ($cxx.id.type != 'msvc') # Temporary for 'export module M;' fixup.
+ cxx.preprocessed = modules
+
using cxx
assert $cxx.features.modules 'c++ compiler does not support modules'