From 2f1053f3ec400822b3c683a2bcc24b492f1fe7d7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 2 Aug 2017 15:22:20 +0200 Subject: Indicate that source is preprocessed to modules --- libmhello/build/root.build | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libmhello/build/root.build') 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' -- cgit v1.1