diff options
| author | gingerBill <bill@gingerbill.org> | 2021-10-12 11:06:39 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-10-12 11:06:39 +0100 |
| commit | 2ad6aa7886e1f0fa3e531b67d03f803a61b1ca03 (patch) | |
| tree | 62c06bdc9252ee5f7c06a912200ee8e0a08a2024 /src/parser.cpp | |
| parent | 75e3df6da2c9a1b503093f7fa393c9cf95c379ca (diff) | |
Copying file contents rather than memory mapping
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 3 |
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: |