From 1958b829f22e3b69d4c4c23662e0d1c7c4d2e62b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 24 Jun 2017 11:43:45 +0200 Subject: Make VC compatible with 'export module M;' by fixing up preprocessed output --- build2/cc/parser.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'build2/cc/parser.cxx') diff --git a/build2/cc/parser.cxx b/build2/cc/parser.cxx index aae49dc..df2e257 100644 --- a/build2/cc/parser.cxx +++ b/build2/cc/parser.cxx @@ -82,13 +82,18 @@ namespace build2 } else if (id == "export") { + uint64_t pos (t.position); + switch (l_->next (t)) { case type::lcbrace: ++bb; ex = true; break; case type::identifier: { if (id == "module") + { + export_pos = pos; parse_module (t, true); + } else if (id == "import") parse_import (t, true); else -- cgit v1.1