Skip to content

Commit

Permalink
remove method file names with --strip-metadata (JuliaLang#52722)
Browse files Browse the repository at this point in the history
These should not appear in binaries when this option is specified.
  • Loading branch information
JeffBezanson committed Jan 4, 2024
1 parent 5a28cf5 commit 6934379
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/staticdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -2393,6 +2393,10 @@ static int strip_all_codeinfos__(jl_typemap_entry_t *def, void *_env)
jl_gc_wb(m, m->source);
}
}
if (jl_options.strip_metadata) {
record_field_change((jl_value_t**)&m->file, (jl_value_t*)jl_empty_sym);
m->line = 0;
}
jl_value_t *specializations = jl_atomic_load_relaxed(&m->specializations);
if (!jl_is_svec(specializations)) {
strip_specializations_((jl_method_instance_t*)specializations);
Expand Down

0 comments on commit 6934379

Please sign in to comment.