From 28e9a4f79c95784651649a799f594ab8c68aa207 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 8 Jun 2021 12:18:26 +0100 Subject: Replace `js_wasm32` with `freestanding_wasm32` --- src/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser.cpp') diff --git a/src/parser.cpp b/src/parser.cpp index 2e8f8ff60..404f82c07 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -5121,7 +5121,7 @@ void parse_setup_file_decls(Parser *p, AstFile *f, String base_dir, Slice for_array(fp_idx, fl->filepaths) { String file_str = fl->filepaths[fp_idx].string; String fullpath = file_str; - if (build_context.metrics.os != TargetOs_js) { + if (allow_check_foreign_filepath()) { String foreign_path = {}; bool ok = determine_path_from_string(&p->file_decl_mutex, node, base_dir, file_str, &foreign_path); if (!ok) { -- cgit v1.2.3