1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-28 02:44:48 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-10-28 20:00:51 +09:00
parent 938c251a5c
commit 66e0be4098

10
main.cc
View File

@ -427,11 +427,15 @@ int main(int argc, char **argv) {
for_each(files, [](ObjectFile *file) { file->register_defined_symbols(); });
std::vector<ObjectFile *> objs;
for (ObjectFile *file : files)
if (!file->is_in_archive())
objs.push_back(file);
tbb::parallel_do(
files.begin(), files.end(),
objs.begin(), objs.end(),
[&](ObjectFile *file, tbb::parallel_do_feeder<ObjectFile *>& feeder) {
if (!file->is_in_archive())
file->register_undefined_symbols(feeder);
file->register_undefined_symbols(feeder);
});
}