1
1
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:
Rui Ueyama 2022-06-04 17:46:21 +08:00
parent fc1aed3e99
commit 1f5da3d313

View File

@ -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;