summaryrefslogtreecommitdiff
path: root/libmformat/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
commit9bc027848d84d8e5f06ab597aef01b399765cf42 (patch)
tree9d4a4a0393b6fa09c037b9db59d94a57757767bf /libmformat/build
parent793a2e3851751505cec9573651ba58cfae582fae (diff)
Indicate that source is preprocessed to modules
Diffstat (limited to 'libmformat/build')
-rw-r--r--libmformat/build/root.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmformat/build/root.build b/libmformat/build/root.build
index 0f4a099..4286e66 100644
--- a/libmformat/build/root.build
+++ b/libmformat/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'