aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-10-12 11:06:39 +0100
committergingerBill <bill@gingerbill.org>2021-10-12 11:06:39 +0100
commit2ad6aa7886e1f0fa3e531b67d03f803a61b1ca03 (patch)
tree62c06bdc9252ee5f7c06a912200ee8e0a08a2024 /src/parser.cpp
parent75e3df6da2c9a1b503093f7fa393c9cf95c379ca (diff)
Copying file contents rather than memory mapping
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index a897ff9aa..716986b5d 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -4615,8 +4615,7 @@ ParseFileError init_ast_file(AstFile *f, String fullpath, TokenPos *err_pos) {
zero_item(&f->tokenizer);
f->tokenizer.curr_file_id = f->id;
- bool copy_file_contents = build_context.command_kind == Command_strip_semicolon;
- TokenizerInitError err = init_tokenizer_from_fullpath(&f->tokenizer, f->fullpath, copy_file_contents);
+ TokenizerInitError err = init_tokenizer_from_fullpath(&f->tokenizer, f->fullpath, build_context.copy_file_contents);
if (err != TokenizerInit_None) {
switch (err) {
case TokenizerInit_Empty: