Skip to content

Commit b9e165b

Browse files
committed
fix JuliaLang#10727: disable depwarn in imaging mode
1 parent 0e127d4 commit b9e165b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ast.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,11 @@ void jl_init_frontend(void)
138138
fl_jlgensym_sym = symbol("jlgensym");
139139

140140
// Enable / disable syntax deprecation warnings
141-
jl_parse_depwarn((int)jl_options.depwarn);
141+
// Disable in imaging mode to avoid i/o errors (#10727)
142+
if (jl_options.build_path != NULL)
143+
jl_parse_depwarn(0);
144+
else
145+
jl_parse_depwarn((int)jl_options.depwarn);
142146
}
143147

144148
DLLEXPORT void jl_lisp_prompt(void)

0 commit comments

Comments
 (0)