diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-02-14 11:50:23 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-02-14 11:50:23 +0200 |
commit | edc9022131b77cec3fe5a662766e36fa9a71d23e (patch) | |
tree | 1e084ffcf7ec3da9ad1eb2e6755335bdda9137f8 /build2/cc/parser.cxx | |
parent | 5d615c7ae1761d1511e01d0b4bea4920fda190a7 (diff) |
Enable modules support only for VC 15u5 and up, drop hacks for earlier
Diffstat (limited to 'build2/cc/parser.cxx')
-rw-r--r-- | build2/cc/parser.cxx | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/build2/cc/parser.cxx b/build2/cc/parser.cxx index fcb6265..c8fcf4b 100644 --- a/build2/cc/parser.cxx +++ b/build2/cc/parser.cxx @@ -82,23 +82,14 @@ 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 - n = false; // Something else (e.g., export namespace). - + if (id == "module") parse_module (t, true); + else if (id == "import") parse_import (t, true); + else n = false; // Something else (e.g., export namespace). break; } default: n = false; break; |