aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build2/cc/compile.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/build2/cc/compile.cxx b/build2/cc/compile.cxx
index 681cfc9..76be8e6 100644
--- a/build2/cc/compile.cxx
+++ b/build2/cc/compile.cxx
@@ -2431,8 +2431,9 @@ namespace build2
env.empty () ? nullptr : env.data ());
}
- ifdstream is (move (pr.in_ofd),
- fdstream_mode::text | fdstream_mode::skip);
+ // Use binary mode to obtain consistent positions.
+ //
+ ifdstream is (move (pr.in_ofd), fdstream_mode::skip);
parser p;
translation_unit tu (p.parse (is, rels));