diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2022-09-16 17:35:22 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2022-09-16 17:36:03 +0300 |
commit | 1486a4f2333d28b1335211acb1e072caecb62761 (patch) | |
tree | 71837f8c748c356794ec258205ebe1be1a9c9d14 | |
parent | ed00f512adef4e6b617af594149c221bfd36c262 (diff) |
Fix parser to use absolute paths as keys for include map
-rw-r--r-- | cli/cli/parser.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/cli/parser.cxx b/cli/cli/parser.cxx index 4685edc..c330e53 100644 --- a/cli/cli/parser.cxx +++ b/cli/cli/parser.cxx @@ -191,7 +191,7 @@ parse (std::istream& is, path const& p) { path ap (p); - ap.absolute (); + ap.complete (); ap.normalize (); include_map_[ap] = unit.get (); } @@ -468,7 +468,7 @@ include_decl () // Detect and ignore multiple inclusions. // path ap (p); - ap.absolute (); + ap.complete (); ap.normalize (); include_map::iterator it (include_map_.find (ap)); |