From 2ad6aa7886e1f0fa3e531b67d03f803a61b1ca03 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 12 Oct 2021 11:06:39 +0100 Subject: Copying file contents rather than memory mapping --- src/parser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/parser.cpp') 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: -- cgit v1.2.3