mirror of
https://github.com/rui314/mold.git
synced 2024-11-10 10:57:55 +03:00
[Mach-O] Ignore comment lines in --exported_symbols_list file
This commit is contained in:
parent
fc1aed3e99
commit
1f5da3d313
@ -149,7 +149,7 @@ read_lines(Context<E> &ctx, std::string_view path) {
|
||||
}
|
||||
|
||||
line = string_trim(line);
|
||||
if (!line.empty())
|
||||
if (!line.empty() && !line.starts_with('#'))
|
||||
vec.push_back(std::string(line));
|
||||
}
|
||||
return vec;
|
||||
|
Loading…
Reference in New Issue
Block a user