diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-06-24 11:43:45 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-06-24 11:43:45 +0200 |
commit | 1958b829f22e3b69d4c4c23662e0d1c7c4d2e62b (patch) | |
tree | fb94b1cba0d34e9b4cc6e1834495a9bd1e62a289 /build2/cc/parser.cxx | |
parent | ff8ed209cd80799199e0b2e3d37213d549bc342f (diff) |
Make VC compatible with 'export module M;' by fixing up preprocessed output
Diffstat (limited to 'build2/cc/parser.cxx')
-rw-r--r-- | build2/cc/parser.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
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 |