aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/parser.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cc/parser.cxx')
-rw-r--r--build2/cc/parser.cxx5
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