From 9bc027848d84d8e5f06ab597aef01b399765cf42 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 --- libmformat/build/root.build | 6 ++++++ libmformat/tests/build/root.build | 3 +++ 2 files changed, 9 insertions(+) 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' diff --git a/libmformat/tests/build/root.build b/libmformat/tests/build/root.build index 58dffed..9e8c50d 100644 --- a/libmformat/tests/build/root.build +++ b/libmformat/tests/build/root.build @@ -1,5 +1,8 @@ cxx.std = experimental +if ($cxx.id.type != 'msvc') # Temporary for 'export module M;' fixup. + cxx.preprocessed = modules + using cxx cxx{*}: extension = cxx -- cgit v1.1